Calendar: Missing userid in allCalendars call
This commit is contained in:
parent
c047fdafdb
commit
1d07b9e291
|
@ -206,7 +206,7 @@ class OC_Calendar_Calendar{
|
||||||
$stmt->execute(array($id));
|
$stmt->execute(array($id));
|
||||||
|
|
||||||
OCP\Util::emitHook('OC_Calendar', 'deleteCalendar', $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');
|
self::addCalendar(OCP\USER::getUser(),'Default calendar');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue