Changed the variable being checked to determine if code was being ran from the command line.
This commit is contained in:
parent
4c366d72a8
commit
53ee689793
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class Config extends Object
|
|||
$environments = $config['environments'];
|
||||
|
||||
// Is this a CLI script
|
||||
$is_cli = isset($_SERVER['argc']);
|
||||
$is_cli = !isset($_SERVER['REQUEST_METHOD']);
|
||||
|
||||
// If we're on the CLI, check an environment was even passed in
|
||||
if ($is_cli == true && $_SERVER['argc'] < 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue