Handle an app having more than one etemplate2_before_exec hook

This commit is contained in:
nathangray 2018-06-05 15:34:54 -06:00
parent 847d1c6812
commit cc21c823dd

View File

@ -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']))
{