From 121d52860e929cc2a784bc038af96942b0038053 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon <blizzz@owncloud.com> Date: Tue, 24 Jun 2014 21:54:57 +0200 Subject: [PATCH] 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 852b55d770..b7148f38fe 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; } } -- GitLab