fixed rare error (how can that even happen?)
This commit is contained in:
parent
d3e4fd309f
commit
9a84a983d3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user