Commit ab8bb4bb authored by arildb's avatar arildb

[FIX] Avoid invalid index errors

parent b56881bf
......@@ -1468,7 +1468,7 @@ function zone_is_empty($zoneName)
}
foreach ($moduleZones[$key] as $module) {
$data = (string) $module['data'];
$data = (string) (isset($module['data']) ? $module['data'] : '');
if (! empty($data)) {
return false;
}
......
......@@ -38,7 +38,7 @@ function smarty_function_modulelist($params, $smarty)
'',
array_map(
function ($module) {
return $module['data'];
return (isset($module['data']) ? $module['data'] : '');
},
$moduleZones[$key]
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment