From 3da39ed75a666bea97e28c1d3d740304ade7ebdf Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 21 Jun 2009 22:08:58 -0600 Subject: [PATCH] Catch Horde_Exception, not Exception. --- imp/lib/Imple/SpellChecker.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/lib/Imple/SpellChecker.php b/imp/lib/Imple/SpellChecker.php index 52e08a89a..384fcc720 100644 --- a/imp/lib/Imple/SpellChecker.php +++ b/imp/lib/Imple/SpellChecker.php @@ -89,14 +89,14 @@ class IMP_Imple_SpellChecker extends IMP_Imple try { $speller = Horde_SpellChecker::getInstance($GLOBALS['conf']['spell']['driver'], $spellArgs); - } catch (Exception $e) { + } catch (Horde_Exception $e) { Horde::logMessage($e, __FILE__, __LINE__, PEAR_LOG_ERR); return array(); } try { return $speller->spellCheck(Horde_Util::getPost($args['input'])); - } catch (Exception $e) { + } catch (Horde_Exception $e) { Horde::logMessage($e, __FILE__, __LINE__, PEAR_LOG_ERR); return array('bad' => array(), 'suggestions' => array()); } -- 2.11.0