do not fail with fatal PHP error, if hook no longer exists

This commit is contained in:
Ralf Becker 2013-11-15 11:53:30 +00:00
parent 758a4557de
commit 91376d80d9

View File

@ -79,7 +79,7 @@ class filemanager_ui
// search for plugins with additional filemanager views // search for plugins with additional filemanager views
foreach($GLOBALS['egw']->hooks->process('filemanager_views') as $app => $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; self::$views_init = true;
} }