diff --git a/test/lib/init.php b/test/lib/init.php index a87a0c6f73..afee2383ad 100644 --- a/test/lib/init.php +++ b/test/lib/init.php @@ -75,7 +75,7 @@ if(!empty($config->test->account) and !empty($config->test->password) and !empty } global $isExtractAction; -$isExtractAction = $argv[1] == '-extract'; +$isExtractAction = $argc > 1 && $argv[1] == '-extract'; /** * Save variable to $_result.