Skip to content

Commit 661c52d

Browse files
committed
Merge branch 'dev'
2 parents d3569c8 + 8f4daf9 commit 661c52d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PatternLab/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public static function updateConfigOption($optionName,$optionValue) {
318318
$prompt = "update the config option <desc>".$optionName."</desc> with the value <desc>".$newOptionValue."</desc>?";
319319
$options = "Y/n";
320320
$input = Console::promptInput($prompt,$options);
321-
321+
322322
if ($input == "y") {
323323
self::writeUpdateConfigOption($optionName,$optionValue);
324324
Console::writeInfo("config option ".$optionName." updated...", false, true);
@@ -373,7 +373,7 @@ protected static function writeUpdateConfigOption($optionName,$optionValue) {
373373
Console::writeError("Config parse error in <path>".self::$userConfigPath."</path>: ".$e->getMessage());
374374
}
375375

376-
if (is_array($options[$optionName])) {
376+
if (isset($options[$optionName]) && is_array($options[$optionName])) {
377377
$optionValue = is_array($optionValue) ? $optionValue : array($optionValue);
378378
$options[$optionName] = array_merge($options[$optionName], $optionValue);
379379
} else {

0 commit comments

Comments
 (0)