From: Michael M Slusarz Date: Sat, 15 Aug 2009 19:47:30 +0000 (-0600) Subject: Have a single menu->apps definition for IMP X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1330a63c19555b37f5bde02adbdafcc07d76c8db;p=horde.git Have a single menu->apps definition for IMP --- diff --git a/imp/config/conf.xml b/imp/config/conf.xml index 1b2894ee6..5b8a82696 100644 --- a/imp/config/conf.xml +++ b/imp/config/conf.xml @@ -297,16 +297,6 @@ before displaying an informational message to users that the message list is still being built. Set to 0 to disable messages.">12 - - - Menu Settings - - - - - - diff --git a/imp/lib/Dimp.php b/imp/lib/Dimp.php index 5ba80b913..0b20303df 100644 --- a/imp/lib/Dimp.php +++ b/imp/lib/Dimp.php @@ -287,13 +287,11 @@ class IMP_Dimp */ static public function menuList() { - if (isset($GLOBALS['conf']['dimp']['menu']['apps'])) { - $apps = $GLOBALS['conf']['dimp']['menu']['apps']; - if (is_array($apps) && count($apps)) { - return $apps; - } - } - return array(); + return (isset($GLOBALS['conf']['menu']['apps']) && + is_array($GLOBALS['conf']['menu']['apps']) && + count($GLOBALS['conf']['menu']['apps'])) + ? $GLOBALS['conf']['menu']['apps'] + : array(); } /**