Use the argv[1] only if it is set.

This commit is contained in:
FusionPBX
2022-02-05 17:42:27 -07:00
committed by GitHub
parent 40205d32bf
commit 7588c8d9f8

View File

@@ -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";