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/CalDAV/CalDavBackend.php | |
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/CalDAV/CalDavBackend.php')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/CalDAV/CalDavBackend.php b/apps/dav/lib/CalDAV/CalDavBackend.php index c99689619d8..84ec8433a83 100644 --- a/apps/dav/lib/CalDAV/CalDavBackend.php +++ b/apps/dav/lib/CalDAV/CalDavBackend.php @@ -152,7 +152,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription $query->andWhere($query->expr()->neq('uri', $query->createNamedParameter(BirthdayService::BIRTHDAY_CALENDAR_URI))); } - return $query->execute()->fetchColumn(); + return (int)$query->execute()->fetchColumn(); } /** |