]> source.dussan.org Git - nextcloud-server.git/commitdiff
Typecast parameter of getAddressBookById 22041/head
authorGeorg Ehrke <developer@georgehrke.com>
Wed, 19 Aug 2020 13:30:13 +0000 (15:30 +0200)
committerGeorg Ehrke <developer@georgehrke.com>
Wed, 19 Aug 2020 13:30:13 +0000 (15:30 +0200)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
apps/dav/lib/CardDAV/CardDavBackend.php

index f20b197b9efe9da510274320164fefb61fa9896d..5c390aa20f10330feb18cd0f3dc6ad3d1d8a8acd 100644 (file)
@@ -402,7 +402,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
 
                        $this->addChange($addressBookId, "", 2);
 
-                       $addressBookRow = $this->getAddressBookById($addressBookId);
+                       $addressBookRow = $this->getAddressBookById((int)$addressBookId);
                        $shares = $this->getShares($addressBookId);
                        $this->dispatcher->dispatchTyped(new AddressBookUpdatedEvent((int)$addressBookId, $addressBookRow, $shares, $mutations));