diff --git a/core/upgrade/upgrade.php b/core/upgrade/upgrade.php index 01a0df57ca..0106913876 100644 --- a/core/upgrade/upgrade.php +++ b/core/upgrade/upgrade.php @@ -54,10 +54,14 @@ //get the command line arguments if(defined('STDIN')) { //$application_name = $argv[0]; - $upgrade_type = $argv[1]; - //echo $upgrade_type."\n"; + if (isset($argv[1])) { + $upgrade_type = $argv[1]; + } } +//show the upgrade type + //echo $upgrade_type."\n"; + //run all app_defaults.php files if ($upgrade_type == 'domains') { require_once "resources/classes/config.php";