aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/caldav/caldavbackend.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/caldav/caldavbackend.php')
-rw-r--r--apps/dav/lib/caldav/caldavbackend.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/dav/lib/caldav/caldavbackend.php b/apps/dav/lib/caldav/caldavbackend.php
index 48fc1fe3b08..1bd1000a731 100644
--- a/apps/dav/lib/caldav/caldavbackend.php
+++ b/apps/dav/lib/caldav/caldavbackend.php
@@ -172,7 +172,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$calendar[$xmlName] = $row[$dbName];
}
- $calendars[] = $calendar;
+ $calendars[$calendar['id']] = $calendar;
}
$stmt->closeCursor();
@@ -223,12 +223,11 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
$calendar[$xmlName] = $row[$dbName];
}
- $calendars[]= $calendar;
+ $calendars[$calendar['id']] = $calendar;
}
$result->closeCursor();
-
- return $calendars;
+ return array_values($calendars);
}
/**