projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3745b59
)
Fix adding events via the API.
author
Michael J. Rubinsky
<mrubinsk@horde.org>
Wed, 10 Feb 2010 21:06:29 +0000
(16:06 -0500)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/kronolith/lib/Api.php
b/kronolith/lib/Api.php
index
d3e8216
..
c1609e0
100644
(file)
--- 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: