summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-09-11 23:18:44 +0200
committerGitHub <noreply@github.com>2016-09-11 23:18:44 +0200
commit9c3ffa6a6576da4c699ed7a9a969732d5ffa9bcb (patch)
tree17b15ba656646e81d0c4654fca9df8af80ccfd90 /apps
parentbc40a033f3a579cbb0117635e4e25cc921617984 (diff)
parent94fb5bcbae2073f7c8df12d4d90f01e181e606b1 (diff)
downloadnextcloud-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.php2
-rw-r--r--apps/dav/lib/CardDAV/CardDavBackend.php2
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();
}
/**