Check if array is set

This commit is contained in:
Renato Botelho 2014-11-06 11:40:10 -02:00
parent 10435fa9f7
commit 049c74ecbf
1 changed files with 1 additions and 1 deletions

View File

@ -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")) {