mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Calendar: Missing userid in allCalendars call
This commit is contained in:
parent
c047fdafdb
commit
1d07b9e291
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue