summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-11-06 11:40:10 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-11-06 11:40:25 -0200
commit049c74ecbfdc508be791e80f42c893034177aac0 (patch)
treec0b177f965a674bb9a0389c5bb758dc6e2c1ec64
parent10435fa9f7100865858e7f208752c03d6b5a4984 (diff)
downloadpfsense-049c74ecbfdc508be791e80f42c893034177aac0.zip
pfsense-049c74ecbfdc508be791e80f42c893034177aac0.tar.gz
Check if array is set
-rwxr-xr-xtmp/post_upgrade_command.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmp/post_upgrade_command.php b/tmp/post_upgrade_command.php
index c4a1357..a33dbb6 100755
--- a/tmp/post_upgrade_command.php
+++ b/tmp/post_upgrade_command.php
@@ -14,7 +14,7 @@
}
$newslicedir = "";
- if ($argv[1] != "")
+ if (isset($argv[1]) && $argv[1] != "")
$newslicedir = '/tmp/' . $argv[1];
if($g['enableserial_force'] || file_exists("{$newslicedir}/enableserial_force")) {
OpenPOWER on IntegriCloud