diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-09-11 23:18:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-11 23:18:44 +0200 |
commit | 9c3ffa6a6576da4c699ed7a9a969732d5ffa9bcb (patch) | |
tree | 17b15ba656646e81d0c4654fca9df8af80ccfd90 /apps | |
parent | bc40a033f3a579cbb0117635e4e25cc921617984 (diff) | |
parent | 94fb5bcbae2073f7c8df12d4d90f01e181e606b1 (diff) | |
download | nextcloud-server-9c3ffa6a6576da4c699ed7a9a969732d5ffa9bcb.tar.gz nextcloud-server-9c3ffa6a6576da4c699ed7a9a969732d5ffa9bcb.zip |
Merge pull request #1351 from nextcloud/cast_to_int
Cast query result to int
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dav/lib/CalDAV/CalDavBackend.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/CardDAV/CardDavBackend.php | 2 |
2 files changed, 2 insertions, 2 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(); } /** 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(); } /** |