diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-24 21:54:57 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-24 21:54:57 +0200 |
commit | 121d52860e929cc2a784bc038af96942b0038053 (patch) | |
tree | dcad434e19c235d7d09f976d1506f8d53b147bac /lib | |
parent | 5dab762006e25407d7df2bceb00b4960a01d317d (diff) | |
download | nextcloud-server-121d52860e929cc2a784bc038af96942b0038053.tar.gz nextcloud-server-121d52860e929cc2a784bc038af96942b0038053.zip |
return int, not string
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/group/database.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/group/database.php b/lib/private/group/database.php index 852b55d770d..b7148f38fe3 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; } } |