Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Adding condition to check if patternItems is set before attempting to…
Browse files Browse the repository at this point in the history
… perform a foreach which throws an error when its not during build.
  • Loading branch information
jamiemagique committed Oct 15, 2014
1 parent 98aaaf2 commit 9d72a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/PatternLab/Builder.php
Expand Up @@ -953,7 +953,7 @@ protected function gatherPatternInfo() {
$arrayReset = false; $arrayReset = false;
} }


} else { } elseif (isset($patternTypeValues["patternItems"])) {


foreach ($patternTypeValues["patternItems"] as $patternSubtypeKey => $patternSubtypeItem) { foreach ($patternTypeValues["patternItems"] as $patternSubtypeKey => $patternSubtypeItem) {
// set the pattern state // set the pattern state
Expand Down

0 comments on commit 9d72a48

Please sign in to comment.