From: Michael M Slusarz Date: Mon, 22 Jun 2009 04:08:58 +0000 (-0600) Subject: Catch Horde_Exception, not Exception. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3da39ed75a666bea97e28c1d3d740304ade7ebdf;p=horde.git Catch Horde_Exception, not Exception. --- 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()); }