From ca9112b36040c6b683aadad49610f89a8a1dbd31 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 18 Jun 2009 19:33:46 +0200 Subject: [PATCH] MFB: Catch error. --- kronolith/lib/Block/month.php | 3 +++ 1 file changed, 3 insertions(+) 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"); } -- 2.11.0