Catch error.
authorJan Schneider <jan@horde.org>
Mon, 17 May 2010 14:26:42 +0000 (16:26 +0200)
committerJan Schneider <jan@horde.org>
Mon, 17 May 2010 15:05:04 +0000 (17:05 +0200)
kronolith/lib/Driver/Sql.php

index 84e725f..1b282aa 100644 (file)
@@ -654,8 +654,10 @@ class Kronolith_Driver_Sql extends Kronolith_Driver
         $tagger = Kronolith::getTagger();
         $tagger->tag($event->uid, $event->tags, $event->creator, 'event');
 
-        /* Add tags again, but as the share owner (replaceTags removes ALL tags). */
+        /* Add tags again, but as the share owner (replaceTags removes ALL
+         * tags). */
         $cal = $GLOBALS['kronolith_shares']->getShare($event->calendar);
+        $this->handleError($cal);
         $tagger->tag($event->uid, $event->tags, $cal->get('owner'), 'event');
 
         /* Update Geolocation */