Changed the variable being checked to determine if code was being ran from the command line.

This commit is contained in:
josh 2010-12-06 20:49:15 -05:00
parent 4c366d72a8
commit 53ee689793

View file

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