From: Michael M Slusarz Date: Mon, 30 Mar 2009 22:13:13 +0000 (-0600) Subject: Error checking. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=22e36414b7b32cd372246ce20d5e2efc0cefc734;p=horde.git Error checking. --- diff --git a/imp/lib/DIMP.php b/imp/lib/DIMP.php index 9eb66fa35..3a97eb711 100644 --- a/imp/lib/DIMP.php +++ b/imp/lib/DIMP.php @@ -137,11 +137,14 @@ class DIMP foreach (DIMP::menuList() as $app) { $app_urls[$app] = Horde::url($registry->getInitialPage($app), true); } + require IMP_BASE . '/config/portal.php'; foreach ($dimp_block_list as $block) { - $app = $block['ob']->getApp(); - if (empty($app_urls[$app])) { - $app_urls[$app] = Horde::url($registry->getInitialPage($app), true); + if (is_a($block['ob'], 'Horde_Block')) { + $app = $block['ob']->getApp(); + if (empty($app_urls[$app])) { + $app_urls[$app] = Horde::url($registry->getInitialPage($app), true); + } } }