Catch exception is user is not authenticated at IMP yet.
authorJan Schneider <jan@horde.org>
Fri, 11 Dec 2009 15:26:50 +0000 (16:26 +0100)
committerJan Schneider <jan@horde.org>
Fri, 11 Dec 2009 15:26:50 +0000 (16:26 +0100)
turba/lib/Turba.php

index c64eadf..7443fab 100644 (file)
@@ -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);