summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rwxr-xr-xframework/prado-cli.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/prado-cli.php b/framework/prado-cli.php
index 58e274fe..894d8adc 100755
--- a/framework/prado-cli.php
+++ b/framework/prado-cli.php
@@ -33,7 +33,7 @@ restore_exception_handler();
//run it;
PradoCommandLineInterpreter::run($_SERVER['argv']);
-if(strtolower($_SERVER['argv'][1])==='shell')
+if(count($_SERVER['argv']) > 1 && strtolower($_SERVER['argv'][1])==='shell')
include_once(dirname(__FILE__).'/3rdParty/PhpShell/php-shell-cmd.php');
class PradoCommandLineInterpreter