if a hook doesn't exist, log it and return null instead of throwing an exception
authorChuck Hagenbuch <chuck@horde.org>
Tue, 14 Jul 2009 04:15:53 +0000 (00:15 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 14 Jul 2009 04:15:53 +0000 (00:15 -0400)
framework/Core/lib/Horde.php

index 7b25e78..58f3369 100644 (file)
@@ -1807,8 +1807,8 @@ HTML;
         }
 
         if (!function_exists($hook)) {
-            throw new Horde_Exception(sprintf('Hook %s in application %s not called.', $hook, $app));
-
+            self::logMessage(sprintf('Hook %s in application %s not called.', $hook, $app), __FILE__, __LINE__, PEAR_LOG_DEBUG);
+            return null;
         }
 
         try {