Permalink
Browse files

Adding condition to check if patternItems is set before attempting to…

… perform a foreach which throws an error when its not during build.
  • Loading branch information...
jamiemagique committed Oct 15, 2014
1 parent 98aaaf2 commit 9d72a48cf988885a95d5d93873771af0f48567eb
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/lib/PatternLab/Builder.php
@@ -953,7 +953,7 @@ protected function gatherPatternInfo() {
$arrayReset = false;
}
} else {
} elseif (isset($patternTypeValues["patternItems"])) {
foreach ($patternTypeValues["patternItems"] as $patternSubtypeKey => $patternSubtypeItem) {
// set the pattern state

0 comments on commit 9d72a48

Please sign in to comment.