diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-06-21 23:21:15 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-06-21 23:30:04 +0200 |
commit | 1d07b9e29186f51220486ff2ea6a3b70175f16e0 (patch) | |
tree | e1e5501e43dce18dd26eca8b664c6b73593dd6bf /apps/calendar | |
parent | c047fdafdb64503ef10db2ac1cc2d1d9120a1244 (diff) | |
download | nextcloud-server-1d07b9e29186f51220486ff2ea6a3b70175f16e0.tar.gz nextcloud-server-1d07b9e29186f51220486ff2ea6a3b70175f16e0.zip |
Calendar: Missing userid in allCalendars call
Diffstat (limited to 'apps/calendar')
-rw-r--r-- | apps/calendar/lib/calendar.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/calendar/lib/calendar.php b/apps/calendar/lib/calendar.php index b725898858d..1bfab5cd645 100644 --- a/apps/calendar/lib/calendar.php +++ b/apps/calendar/lib/calendar.php @@ -206,7 +206,7 @@ class OC_Calendar_Calendar{ $stmt->execute(array($id)); OCP\Util::emitHook('OC_Calendar', 'deleteCalendar', $id); - if(count(self::allCalendars()) == 0) { + if(count(self::allCalendars(OCP\USER::getUser())) == 0) { self::addCalendar(OCP\USER::getUser(),'Default calendar'); } |