Fix adding events via the API.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 10 Feb 2010 21:06:29 +0000 (16:06 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 10 Feb 2010 21:08:14 +0000 (16:08 -0500)
Sneaky little bug. Can't catch a Kronolith_Exception here, since
Kronolith_Driver#getByUID can also throw a Horde_Exception_NotFound now too.

kronolith/lib/Api.php

index d3e8216..c1609e0 100644 (file)
@@ -586,7 +586,7 @@ class Kronolith_Api extends Horde_Registry_Api
                         $existing_event = $kronolith_driver->getByUID($uid, array($calendar));
                         throw new Kronolith_Exception(_("Already Exists"),
                                                       'horde.message', null, null, $uid);
-                    } catch (Kronolith_Exception $e) {
+                    } catch (Horde_Exception $e) {
                     }
                     $result = $kronolith_driver->search($event);
                     // Check if the match really is an exact match: