From 590c4aa710077ae82a5af0ec4477a00eafe791dc Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Mon, 28 Jan 2013 15:58:40 +0100 Subject: search display name instead of uid; fix key/value order for array access --- lib/user/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/user/database.php') diff --git a/lib/user/database.php b/lib/user/database.php index bed97f25fdb..7deeb0c4697 100644 --- a/lib/user/database.php +++ b/lib/user/database.php @@ -155,7 +155,7 @@ class OC_User_Database extends OC_User_Backend { */ public function getDisplayNames($search = '', $limit = null, $offset = null) { $displayNames = array(); - $query = OC_DB::prepare('SELECT `uid`, `displayname` FROM `*PREFIX*users` WHERE LOWER(`uid`) LIKE LOWER(?)', $limit, $offset); + $query = OC_DB::prepare('SELECT `uid`, `displayname` FROM `*PREFIX*users` WHERE LOWER(`displayname`) LIKE LOWER(?)', $limit, $offset); $result = $query->execute(array($search.'%')); $users = array(); while ($row = $result->fetchRow()) { -- cgit v1.2.3