summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authormichag86 <micha_g@arcor.de>2014-10-07 16:07:48 +0200
committermichag86 <micha_g@arcor.de>2014-10-07 16:07:48 +0200
commitca58ac50a25272fe18ce1015abc75de0af0fa041 (patch)
tree9b6eadf2bed22f9e812cb17113174912a3717ae3 /lib/private
parentd7db006315cec4d2c0497da06d16db5edfc9b9d2 (diff)
downloadnextcloud-server-ca58ac50a25272fe18ce1015abc75de0af0fa041.tar.gz
nextcloud-server-ca58ac50a25272fe18ce1015abc75de0af0fa041.zip
fix for issue #10880
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/group/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/group/database.php b/lib/private/group/database.php
index e6a5565b20e..8aebefabd27 100644
--- a/lib/private/group/database.php
+++ b/lib/private/group/database.php
@@ -168,7 +168,7 @@ class OC_Group_Database extends OC_Group_Backend {
* Returns a list with all groups
*/
public function getGroups($search = '', $limit = null, $offset = null) {
- $stmt = OC_DB::prepare('SELECT `gid` FROM `*PREFIX*groups` WHERE `gid` LIKE ? ORDER BY `gid` ASC', $limit, $offset);
+ $stmt = OC_DB::prepare('SELECT `gid` FROM `*PREFIX*groups` WHERE LOWER(`gid`) LIKE LOWER(?) ORDER BY `gid` ASC', $limit, $offset);
$result = $stmt->execute(array('%' . $search . '%'));
$groups = array();
while ($row = $result->fetchRow()) {