diff --git a/api/src/Etemplate/Widget.php b/api/src/Etemplate/Widget.php index f9ba0dd6c8..c19d6eca16 100644 --- a/api/src/Etemplate/Widget.php +++ b/api/src/Etemplate/Widget.php @@ -467,7 +467,7 @@ class Widget { $elements[] = $child; } - $elements += $child->getElementsByType($type); + $elements = array_merge($elements, $child->getElementsByType($type)); } return $elements; }