[dev] Horde/Menu.php patch #2 (IGNORE first patch)

Vilius Šumskas vilius at lnk.lt
Wed Apr 7 05:15:36 PDT 2004


Sorry,

this is good version of patch.

--
   Best regards,

   Vilius Šumskas
   LNK TV sistemų administratorius
   mob.: +370 614 75713
   www.lnk.lt
-------------- next part --------------
--- Menu.php.orig	2004-04-07 15:14:12.000000000 +0300
+++ Menu.php	2004-04-07 15:09:41.000000000 +0300
@@ -250,7 +250,9 @@
         /* Get the menu array from the current app. */
         $app = $registry->getApp();
         $function = 'get' . $app . 'Menu';
-        $menu = call_user_func(array($app, $function));
+        if (is_callable(array($app, $function))) {
+            $menu = call_user_func(array($app, $function));
+        }
 
         /* Add settings item. */
         if ($this->_with_prefs &&


More information about the dev mailing list