Error checking.
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Mar 2009 22:13:13 +0000 (16:13 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 30 Mar 2009 23:12:52 +0000 (17:12 -0600)
imp/lib/DIMP.php

index 9eb66fa..3a97eb7 100644 (file)
@@ -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);
+                }
             }
         }