Skip to content

Commit 85b0772

Browse files
committed
chore: don't pass null to createElement
Signed-off-by: Daniel Kesselberg <[email protected]>
1 parent 546ad1b commit 85b0772

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/dav/lib/CardDAV/SyncService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private function buildSyncCollectionRequestBody(?string $syncToken): string {
159159
$dom = new \DOMDocument('1.0', 'UTF-8');
160160
$dom->formatOutput = true;
161161
$root = $dom->createElementNS('DAV:', 'd:sync-collection');
162-
$sync = $dom->createElement('d:sync-token', $syncToken);
162+
$sync = $dom->createElement('d:sync-token', $syncToken ?? '');
163163
$prop = $dom->createElement('d:prop');
164164
$cont = $dom->createElement('d:getcontenttype');
165165
$etag = $dom->createElement('d:getetag');

0 commit comments

Comments
 (0)