[Pkg-owncloud-commits] [owncloud] 37/273: return int, not string
David Prévot
taffit at moszumanska.debian.org
Fri Jul 4 03:12:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 121d52860e929cc2a784bc038af96942b0038053
Author: Arthur Schiwon <blizzz at owncloud.com>
Date: Tue Jun 24 21:54:57 2014 +0200
return int, not string
---
lib/private/group/database.php | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/private/group/database.php b/lib/private/group/database.php
index 852b55d..b7148f3 100644
--- a/lib/private/group/database.php
+++ b/lib/private/group/database.php
@@ -221,7 +221,11 @@ class OC_Group_Database extends OC_Group_Backend {
public function countUsersInGroup($gid, $search = '') {
$stmt = OC_DB::prepare('SELECT COUNT(`uid`) AS `count` FROM `*PREFIX*group_user` WHERE `gid` = ? AND `uid` LIKE ?');
$result = $stmt->execute(array($gid, '%' . $search . '%'));
- return $result->fetchOne();
+ $count = $result->fetchOne();
+ if($count !== false) {
+ $count = intval($count);
+ }
+ return $count;
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list