From 22e36414b7b32cd372246ce20d5e2efc0cefc734 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 30 Mar 2009 16:13:13 -0600 Subject: [PATCH] Error checking. --- imp/lib/DIMP.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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); + } } } -- 2.11.0