From: Michael J. Rubinsky Date: Thu, 8 Apr 2010 19:53:41 +0000 (-0400) Subject: Check for pear_error being returned from Horde_Share X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f02c379b4f2bb77633c9f14a80450d3265e9f35a;p=horde.git Check for pear_error being returned from Horde_Share --- diff --git a/kronolith/lib/Driver/Sql.php b/kronolith/lib/Driver/Sql.php index 9e1889635..43428f421 100644 --- a/kronolith/lib/Driver/Sql.php +++ b/kronolith/lib/Driver/Sql.php @@ -595,6 +595,9 @@ class Kronolith_Driver_Sql extends Kronolith_Driver /* Add tags again, but as the share owner (replaceTags removes ALL tags). */ $cal = $GLOBALS['kronolith_shares']->getShare($event->calendar); + if ($cal instanceof PEAR_Error) { + throw new Kronolith_Exception($cal); + } $tagger->tag($event->uid, $event->tags, $cal->get('owner'), 'event'); /* Update Geolocation */