From: Jan Schneider Date: Fri, 11 Dec 2009 15:26:50 +0000 (+0100) Subject: Catch exception is user is not authenticated at IMP yet. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b1974e78433a5529fb4a6f75749ff75a4db5f045;p=horde.git Catch exception is user is not authenticated at IMP yet. --- 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);