Skip to content
Snippets Groups Projects
Commit ca632246 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Treat getUsers() as case insensitive, helpful for showing proper results in...

Treat getUsers() as case insensitive, helpful for showing proper results in the share with autocomplete
parent 60feaf9a
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ class OC_User_Database extends OC_User_Backend {
* Get a list of all users.
*/
public function getUsers($search = '', $limit = null, $offset = null) {
$query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE `uid` LIKE ?',$limit,$offset);
$query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE LOWER(`uid`) LIKE LOWER(?)',$limit,$offset);
$result = $query->execute(array($search.'%'));
$users = array();
while ($row = $result->fetchRow()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment