From: Jan Schneider Date: Thu, 18 Jun 2009 17:33:46 +0000 (+0200) Subject: MFB: Catch error. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ca9112b36040c6b683aadad49610f89a8a1dbd31;p=horde.git MFB: Catch error. --- diff --git a/kronolith/lib/Block/month.php b/kronolith/lib/Block/month.php index 0ec9da3c5..90024e170 100644 --- a/kronolith/lib/Block/month.php +++ b/kronolith/lib/Block/month.php @@ -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"); }