Skip to content

Commit

Permalink
Ignore vanished resources when deleting events.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Aug 11, 2017
1 parent 1075e6e commit 50e88a9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kronolith/lib/Driver.php
Expand Up @@ -492,8 +492,12 @@ public function deleteEvent($eventId, $silent = false)
foreach ($resources as $uid => $resource) {
if ($resource['response'] !== Kronolith::RESPONSE_DECLINED &&
$resource['response'] !== Kronolith::RESPONSE_NONE) {
$r = $rd->getResource($uid);
$r->removeEvent($event);
try {
$r = $rd->getResource($uid);
$r->removeEvent($event);
} catch (Horde_Exception_NotFound $e) {
} catch (Kronolith_Exception $e) {
}
}
}
}
Expand Down

0 comments on commit 50e88a9

Please sign in to comment.