Calendar: Missing userid in allCalendars call

This commit is contained in:
Bart Visscher 2012-06-21 23:21:15 +02:00
parent c047fdafdb
commit 1d07b9e291
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}