From ca47e34a1124a4844a0dfff3fd22b04a095dc2b3 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 13 Apr 2015 20:01:49 +0000 Subject: [PATCH] Avoid warning from applications with no data (sambaadmin) --- admin/inc/class.admin_ui.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin/inc/class.admin_ui.inc.php b/admin/inc/class.admin_ui.inc.php index 8ce6abb20f..8edce205a2 100644 --- a/admin/inc/class.admin_ui.inc.php +++ b/admin/inc/class.admin_ui.inc.php @@ -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))