Fix bug where some elements would not be returned if a child of a later sibling was the same type

This commit is contained in:
nathangray 2017-04-13 11:46:07 -06:00
parent 2d3ca5c96e
commit bcd86f7ae9

View File

@ -467,7 +467,7 @@ class Widget
{ {
$elements[] = $child; $elements[] = $child;
} }
$elements += $child->getElementsByType($type); $elements = array_merge($elements, $child->getElementsByType($type));
} }
return $elements; return $elements;
} }