From 91376d80d9103f1e8e8dcd7c8921f02fe5ef2fca Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 15 Nov 2013 11:53:30 +0000 Subject: [PATCH] do not fail with fatal PHP error, if hook no longer exists --- filemanager/inc/class.filemanager_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filemanager/inc/class.filemanager_ui.inc.php b/filemanager/inc/class.filemanager_ui.inc.php index 100b6172aa..1b402ff575 100644 --- a/filemanager/inc/class.filemanager_ui.inc.php +++ b/filemanager/inc/class.filemanager_ui.inc.php @@ -79,7 +79,7 @@ class filemanager_ui // search for plugins with additional filemanager views foreach($GLOBALS['egw']->hooks->process('filemanager_views') as $app => $views) { - if ($views) self::$views += $views; + if (is_array($views)) self::$views += $views; } self::$views_init = true; }