Avoid warning from applications with no data (sambaadmin)

This commit is contained in:
Nathan Gray 2015-04-13 19:27:28 +00:00
parent 5cebf6be61
commit b8af138e79

View File

@ -350,6 +350,11 @@ class admin_ui
$hook_data = self::call_hook(); $hook_data = self::call_hook();
foreach($hook_data as $app => $app_data) foreach($hook_data as $app => $app_data)
{ {
if(!is_array($app_data))
{
// Application has no data
continue;
}
foreach($app_data as $text => $data) foreach($app_data as $text => $data)
{ {
if (!is_array($data)) if (!is_array($data))