Avoid warning from applications with no data (sambaadmin)

This commit is contained in:
Nathan Gray 2015-04-13 20:01:49 +00:00
parent 649b706ee5
commit ca47e34a11

View File

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