From 7aa6dfd229b7ea0086c230781b28663be81d112a Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 14 Jul 2009 00:15:53 -0400 Subject: [PATCH] if a hook doesn't exist, log it and return null instead of throwing an exception --- framework/Core/lib/Horde.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.11.0