diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-09 19:15:27 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-09 19:15:27 +0200 |
commit | 94fb5bcbae2073f7c8df12d4d90f01e181e606b1 (patch) | |
tree | e7447fd0d192401893aec926820cb2dab15b4083 /apps/dav/lib/CardDAV | |
parent | 3fc37b2fc59f037c2da53a94207f43b1497eaaec (diff) | |
download | nextcloud-server-94fb5bcbae2073f7c8df12d4d90f01e181e606b1.tar.gz nextcloud-server-94fb5bcbae2073f7c8df12d4d90f01e181e606b1.zip |
Cast query result to int
Else we never create the default address book
Diffstat (limited to 'apps/dav/lib/CardDAV')
-rw-r--r-- | apps/dav/lib/CardDAV/CardDavBackend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CardDAV/CardDavBackend.php b/apps/dav/lib/CardDAV/CardDavBackend.php index 48e3b04b38b..b8491c08ff6 100644 --- a/apps/dav/lib/CardDAV/CardDavBackend.php +++ b/apps/dav/lib/CardDAV/CardDavBackend.php @@ -111,7 +111,7 @@ class CardDavBackend implements BackendInterface, SyncSupport { ->from('addressbooks') ->where($query->expr()->eq('principaluri', $query->createNamedParameter($principalUri))); - return $query->execute()->fetchColumn(); + return (int)$query->execute()->fetchColumn(); } /** |