From: Michael J. Rubinsky Date: Wed, 10 Feb 2010 21:06:29 +0000 (-0500) Subject: Fix adding events via the API. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ec336c0cc7c02a2567e9efe18a607edf03a03f19;p=horde.git Fix adding events via the API. Sneaky little bug. Can't catch a Kronolith_Exception here, since Kronolith_Driver#getByUID can also throw a Horde_Exception_NotFound now too. --- diff --git a/kronolith/lib/Api.php b/kronolith/lib/Api.php index d3e8216be..c1609e0e3 100644 --- a/kronolith/lib/Api.php +++ b/kronolith/lib/Api.php @@ -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: