File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ public static function updateConfigOption($optionName,$optionValue) {
318
318
$ prompt = "update the config option <desc> " .$ optionName ."</desc> with the value <desc> " .$ newOptionValue ."</desc>? " ;
319
319
$ options = "Y/n " ;
320
320
$ input = Console::promptInput ($ prompt ,$ options );
321
-
321
+
322
322
if ($ input == "y " ) {
323
323
self ::writeUpdateConfigOption ($ optionName ,$ optionValue );
324
324
Console::writeInfo ("config option " .$ optionName ." updated... " , false , true );
@@ -373,7 +373,7 @@ protected static function writeUpdateConfigOption($optionName,$optionValue) {
373
373
Console::writeError ("Config parse error in <path> " .self ::$ userConfigPath ."</path>: " .$ e ->getMessage ());
374
374
}
375
375
376
- if (is_array ($ options [$ optionName ])) {
376
+ if (isset ( $ options [ $ optionName ]) && is_array ($ options [$ optionName ])) {
377
377
$ optionValue = is_array ($ optionValue ) ? $ optionValue : array ($ optionValue );
378
378
$ options [$ optionName ] = array_merge ($ options [$ optionName ], $ optionValue );
379
379
} else {
You can’t perform that action at this time.
0 commit comments