Don't log an error if the parent of a sidebar entry is inactive.
authorJan Schneider <jan@horde.org>
Tue, 28 Dec 2010 17:30:41 +0000 (18:30 +0100)
committerJan Schneider <jan@horde.org>
Tue, 28 Dec 2010 17:30:41 +0000 (18:30 +0100)
framework/Core/lib/Horde/Core/Sidebar.php

index 7f90751..da830ff 100644 (file)
@@ -131,7 +131,9 @@ class Horde_Core_Sidebar
                 try {
                     $registry->callAppMethod($params['app'], 'sidebarCreate', array('args' => array($tree, empty($params['menu_parent']) ? null : $params['menu_parent'], isset($params['sidebar_params']) ? $params['sidebar_params'] : array())));
                 } catch (Horde_Exception $e) {
-                    Horde::logMessage($e, 'ERR');
+                    if ($e->getCode() != Horde_Registry::NOT_ACTIVE) {
+                        Horde::logMessage($e, 'ERR');
+                    }
                 }
                 break;