From 418a18efe2bebee0d0325c0fc77771a2ae5d30f9 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 11 Dec 2009 16:30:57 +0100 Subject: [PATCH] This is the place with the exception. --- turba/lib/Turba.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) { -- 2.11.0