From ec336c0cc7c02a2567e9efe18a607edf03a03f19 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 10 Feb 2010 16:06:29 -0500 Subject: [PATCH] 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. --- kronolith/lib/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.11.0