MFB: Catch error.
authorJan Schneider <jan@horde.org>
Thu, 18 Jun 2009 17:33:46 +0000 (19:33 +0200)
committerJan Schneider <jan@horde.org>
Fri, 19 Jun 2009 15:40:56 +0000 (17:40 +0200)
kronolith/lib/Block/month.php

index 0ec9da3..90024e1 100644 (file)
@@ -75,6 +75,9 @@ class Horde_Block_Kronolith_month extends Horde_Block {
             if (is_a($this->_share, 'PEAR_Error')) {
                 return _(sprintf("There was an error accessing the calendar: %s", $this->_share->getMessage()));
             }
+            if (is_a($this->_share, 'PEAR_Error')) {
+                return $this->_share;
+            }
             if (!$this->_share->hasPermission(Auth::getAuth(), PERMS_SHOW)) {
                 return _("Permission Denied");
             }