mirror of
https://github.com/pattern-lab/patternlab-php.git
synced 2025-01-17 22:29:12 +01:00
adding a check to make sure items are valid arrays
This commit is contained in:
parent
fbf5c52367
commit
c10b20e8d7
@ -716,7 +716,9 @@ class Builder {
|
||||
$this->d["patternSpecific"][$patternPartial]["listItems"] = array();
|
||||
}
|
||||
|
||||
$this->d["patternSpecific"][$patternPartial]["data"] = array_merge($patternDataBase, $patternData);
|
||||
if (is_array($patternDataBase) && is_array($patternData)) {
|
||||
$this->d["patternSpecific"][$patternPartial]["data"] = array_merge($patternDataBase, $patternData);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user