diff --git a/api/src/Etemplate.php b/api/src/Etemplate.php index 323a730d2c..768198b309 100644 --- a/api/src/Etemplate.php +++ b/api/src/Etemplate.php @@ -113,7 +113,7 @@ class Etemplate extends Etemplate\Widget\Template { if (!$extras) continue; - foreach(isset($extras[0]) ? $extras : array($extras) as $extra) + foreach(isset($extras[0]) || count($extras) ? $extras : array($extras) as $extra) { if ($extra['data'] && is_array($extra['data'])) {