From 4aa9807733b3480be43c9eccb8ff69e9ef74ed3f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Wed, 12 Jan 2011 16:22:08 -0500 Subject: [PATCH] Fix removeUserData in kronolith Kronolith::listEventIds() no longer exists. --- kronolith/lib/Driver/Sql.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/kronolith/lib/Driver/Sql.php b/kronolith/lib/Driver/Sql.php index 23588fe11..4a54b38ba 100644 --- a/kronolith/lib/Driver/Sql.php +++ b/kronolith/lib/Driver/Sql.php @@ -973,11 +973,13 @@ class Kronolith_Driver_Sql extends Kronolith_Driver } foreach (array_keys($shares) as $calendar) { - $ids = Kronolith::listEventIds(null, null, $calendar); - $this->handleError($ids); + $driver = Kronolith::getDriver(null, $calendar); + $events = $driver->listEvents(null, null, false, false, false); $uids = array(); - foreach ($ids as $cal) { - $uids = array_merge($uids, array_keys($cal)); + foreach ($events as $dayevents) { + foreach ($dayevents as $event) { + $uids[] = $event->uid; + } } foreach ($uids as $uid) { -- 2.11.0