From b1974e78433a5529fb4a6f75749ff75a4db5f045 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 11 Dec 2009 16:26:50 +0100 Subject: [PATCH] Catch exception is user is not authenticated at IMP yet. --- turba/lib/Turba.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/turba/lib/Turba.php b/turba/lib/Turba.php index c64eadf7b..7443fabca 100644 --- a/turba/lib/Turba.php +++ b/turba/lib/Turba.php @@ -20,7 +20,11 @@ class Turba { static $batchCompose; if (!isset($batchCompose)) { - $batchCompose = $registry->hasMethod('mail/batchCompose'); + try { + $batchCompose = $registry->hasMethod('mail/batchCompose'); + } catch (Horde_Exception $e) { + $batchCompose = false; + } } $array = is_array($data); -- 2.11.0