Skip to content

Commit 8f4daf9

Browse files
committed
making sure var is set before inspecting
1 parent 59418b4 commit 8f4daf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PatternLab/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)