fixed rare error (how can that even happen?)

This commit is contained in:
Steffen Schröder 2014-05-15 13:03:59 +02:00
parent d3e4fd309f
commit 9a84a983d3

View File

@ -19,6 +19,9 @@ class CommandLineHelper {
*/
public static function getParameter($paramName) {
global $argv;
if (!is_array($argv)) {
return null;
}
$paramName = (string)$paramName;
foreach ($argv as $arg) {
$parts = explode('=', $arg, 2);