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

Commit 9d72a48

Browse files
committed
Adding condition to check if patternItems is set before attempting to perform a foreach which throws an error when its not during build.
1 parent 98aaaf2 commit 9d72a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/PatternLab/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ protected function gatherPatternInfo() {
953953
$arrayReset = false;
954954
}
955955

956-
} else {
956+
} elseif (isset($patternTypeValues["patternItems"])) {
957957

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

0 commit comments

Comments
 (0)