From f02c379b4f2bb77633c9f14a80450d3265e9f35a Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 8 Apr 2010 15:53:41 -0400 Subject: [PATCH] Check for pear_error being returned from Horde_Share --- kronolith/lib/Driver/Sql.php | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.11.0