@@ -329,8 +329,8 @@ public function getCalendarsForUser($principalUri) {
329329 'id ' => $ row ['id ' ],
330330 'uri ' => $ row ['uri ' ],
331331 'principaluri ' => $ this ->convertPrincipal ($ row ['principaluri ' ], !$ this ->legacyEndpoint ),
332- '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ),
333- '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ,
332+ '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ] ?: '0 ' ),
333+ '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?: '0 ' ,
334334 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet ($ components ),
335335 '{ ' . Plugin::NS_CALDAV . '}schedule-calendar-transp ' => new ScheduleCalendarTransp ($ row ['transparent ' ]?'transparent ' :'opaque ' ),
336336 '{ ' . \OCA \DAV \DAV \Sharing \Plugin::NS_OWNCLOUD . '}owner-principal ' => $ this ->convertPrincipal ($ principalUri , !$ this ->legacyEndpoint ),
@@ -411,8 +411,8 @@ public function getCalendarsForUser($principalUri) {
411411 'id ' => $ row ['id ' ],
412412 'uri ' => $ uri ,
413413 'principaluri ' => $ this ->convertPrincipal ($ principalUri , !$ this ->legacyEndpoint ),
414- '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ),
415- '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ,
414+ '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ] ?: '0 ' ),
415+ '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?: '0 ' ,
416416 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet ($ components ),
417417 '{ ' . Plugin::NS_CALDAV . '}schedule-calendar-transp ' => new ScheduleCalendarTransp ('transparent ' ),
418418 '{ ' . \OCA \DAV \DAV \Sharing \Plugin::NS_OWNCLOUD . '}owner-principal ' => $ this ->convertPrincipal ($ row ['principaluri ' ], !$ this ->legacyEndpoint ),
@@ -461,8 +461,8 @@ public function getUsersOwnCalendars($principalUri) {
461461 'id ' => $ row ['id ' ],
462462 'uri ' => $ row ['uri ' ],
463463 'principaluri ' => $ this ->convertPrincipal ($ row ['principaluri ' ], !$ this ->legacyEndpoint ),
464- '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ),
465- '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ,
464+ '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ] ?: '0 ' ),
465+ '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?: '0 ' ,
466466 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet ($ components ),
467467 '{ ' . Plugin::NS_CALDAV . '}schedule-calendar-transp ' => new ScheduleCalendarTransp ($ row ['transparent ' ]?'transparent ' :'opaque ' ),
468468 ];
@@ -513,8 +513,8 @@ public function getPublicCalendars() {
513513 'id ' => $ row ['id ' ],
514514 'uri ' => $ row ['publicuri ' ],
515515 'principaluri ' => $ this ->convertPrincipal ($ row ['principaluri ' ], !$ this ->legacyEndpoint ),
516- '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ),
517- '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ,
516+ '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ] ?: '0 ' ),
517+ '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?: '0 ' ,
518518 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet ($ components ),
519519 '{ ' . Plugin::NS_CALDAV . '}schedule-calendar-transp ' => new ScheduleCalendarTransp ($ row ['transparent ' ]?'transparent ' :'opaque ' ),
520520 '{ ' . \OCA \DAV \DAV \Sharing \Plugin::NS_OWNCLOUD . '}owner-principal ' => $ this ->convertPrincipal ($ row ['principaluri ' ], $ this ->legacyEndpoint ),
@@ -578,8 +578,8 @@ public function getPublicCalendar($uri) {
578578 'id ' => $ row ['id ' ],
579579 'uri ' => $ row ['publicuri ' ],
580580 'principaluri ' => $ this ->convertPrincipal ($ row ['principaluri ' ], !$ this ->legacyEndpoint ),
581- '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ),
582- '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ,
581+ '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ] ?: '0 ' ),
582+ '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?: '0 ' ,
583583 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet ($ components ),
584584 '{ ' . Plugin::NS_CALDAV . '}schedule-calendar-transp ' => new ScheduleCalendarTransp ($ row ['transparent ' ]?'transparent ' :'opaque ' ),
585585 '{ ' . \OCA \DAV \DAV \Sharing \Plugin::NS_OWNCLOUD . '}owner-principal ' => $ this ->convertPrincipal ($ row ['principaluri ' ], !$ this ->legacyEndpoint ),
@@ -632,8 +632,8 @@ public function getCalendarByUri($principal, $uri) {
632632 'id ' => $ row ['id ' ],
633633 'uri ' => $ row ['uri ' ],
634634 'principaluri ' => $ this ->convertPrincipal ($ row ['principaluri ' ], !$ this ->legacyEndpoint ),
635- '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ),
636- '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ,
635+ '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ] ?: '0 ' ),
636+ '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?: '0 ' ,
637637 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet ($ components ),
638638 '{ ' . Plugin::NS_CALDAV . '}schedule-calendar-transp ' => new ScheduleCalendarTransp ($ row ['transparent ' ]?'transparent ' :'opaque ' ),
639639 ];
@@ -680,7 +680,7 @@ public function getCalendarById(int $calendarId): ?array {
680680 'id ' => $ row ['id ' ],
681681 'uri ' => $ row ['uri ' ],
682682 'principaluri ' => $ this ->convertPrincipal ($ row ['principaluri ' ], !$ this ->legacyEndpoint ),
683- '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ),
683+ '{ ' . Plugin::NS_CALENDARSERVER . '}getctag ' => 'http://sabre.io/ns/sync/ ' . ($ row ['synctoken ' ] ?: '0 ' ),
684684 '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?? 0 ,
685685 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet ($ components ),
686686 '{ ' . Plugin::NS_CALDAV . '}schedule-calendar-transp ' => new ScheduleCalendarTransp ($ row ['transparent ' ]?'transparent ' :'opaque ' ),
@@ -726,7 +726,7 @@ public function getSubscriptionById($subscriptionId) {
726726 'source ' => $ row ['source ' ],
727727 'lastmodified ' => $ row ['lastmodified ' ],
728728 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet (['VTODO ' , 'VEVENT ' ]),
729- '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ,
729+ '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?: '0 ' ,
730730 ];
731731
732732 return $ this ->rowToSubscription ($ row , $ subscription );
@@ -2560,7 +2560,7 @@ public function getSubscriptionsForUser($principalUri) {
25602560 'lastmodified ' => $ row ['lastmodified ' ],
25612561
25622562 '{ ' . Plugin::NS_CALDAV . '}supported-calendar-component-set ' => new SupportedCalendarComponentSet (['VTODO ' , 'VEVENT ' ]),
2563- '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ]? $ row [ ' synctoken ' ]: '0 ' ,
2563+ '{http://sabredav.org/ns}sync-token ' => $ row ['synctoken ' ] ?: '0 ' ,
25642564 ];
25652565
25662566 $ subscriptions [] = $ this ->rowToSubscription ($ row , $ subscription );
0 commit comments