From: Jan Schneider Date: Tue, 28 Dec 2010 17:30:41 +0000 (+0100) Subject: Don't log an error if the parent of a sidebar entry is inactive. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4afec82f03a8a773fc6ab0748d3142ba2e870559;p=horde.git Don't log an error if the parent of a sidebar entry is inactive. --- diff --git a/framework/Core/lib/Horde/Core/Sidebar.php b/framework/Core/lib/Horde/Core/Sidebar.php index 7f9075186..da830ff06 100644 --- a/framework/Core/lib/Horde/Core/Sidebar.php +++ b/framework/Core/lib/Horde/Core/Sidebar.php @@ -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;