From: Jan Schneider Date: Fri, 11 Dec 2009 15:30:57 +0000 (+0100) Subject: This is the place with the exception. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=418a18efe2bebee0d0325c0fc77771a2ae5d30f9;p=horde.git This is the place with the exception. --- diff --git a/turba/lib/Turba.php b/turba/lib/Turba.php index 7443fabca..97369da06 100644 --- a/turba/lib/Turba.php +++ b/turba/lib/Turba.php @@ -20,11 +20,7 @@ class Turba { static $batchCompose; if (!isset($batchCompose)) { - try { - $batchCompose = $registry->hasMethod('mail/batchCompose'); - } catch (Horde_Exception $e) { - $batchCompose = false; - } + $batchCompose = $registry->hasMethod('mail/batchCompose'); } $array = is_array($data); @@ -55,7 +51,11 @@ class Turba { } if ($batchCompose) { - $addresses = $GLOBALS['registry']->call('mail/batchCompose', array($addresses)); + try { + $addresses = $GLOBALS['registry']->call('mail/batchCompose', array($addresses)); + } catch (Horde_Exception $e) { + $batchCompose = false; + } } foreach ($data as $i => $email_vals) {