From: Chuck Hagenbuch Date: Tue, 14 Jul 2009 04:15:53 +0000 (-0400) Subject: if a hook doesn't exist, log it and return null instead of throwing an exception X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7aa6dfd229b7ea0086c230781b28663be81d112a;p=horde.git if a hook doesn't exist, log it and return null instead of throwing an exception --- diff --git a/framework/Core/lib/Horde.php b/framework/Core/lib/Horde.php index 7b25e780d..58f336949 100644 --- a/framework/Core/lib/Horde.php +++ b/framework/Core/lib/Horde.php @@ -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 {