From d6459fec8af93fdb468ab596a41ed5f0ea2f0336 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 15 Jul 2013 08:08:49 +0000 Subject: [PATCH] fixed warning --- admin/inc/class.admin_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.admin_ui.inc.php b/admin/inc/class.admin_ui.inc.php index 1f277175cc..4b39c6e0ff 100644 --- a/admin/inc/class.admin_ui.inc.php +++ b/admin/inc/class.admin_ui.inc.php @@ -109,7 +109,7 @@ class admin_ui if ($app == 'felamimail') continue; // disabled fmail for now, as it break whole admin, dono why $GLOBALS['menuData'] = $data = array(); $data = $GLOBALS['egw']->hooks->single('edit_user', $app, true); - if (!$data) $data = $GLOBALS['menuData']; + if (!is_array($data)) $data = $GLOBALS['menuData']; foreach($data as $item) { // allow hook to return "real" actions, but still support legacy: description, url, extradata, options