Treat getUsers() as case insensitive, helpful for showing proper results in the share with autocomplete
This commit is contained in:
parent
60feaf9abf
commit
ca6322465d
|
@ -155,7 +155,7 @@ class OC_User_Database extends OC_User_Backend {
|
||||||
* Get a list of all users.
|
* Get a list of all users.
|
||||||
*/
|
*/
|
||||||
public function getUsers($search = '', $limit = null, $offset = null) {
|
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.'%'));
|
$result = $query->execute(array($search.'%'));
|
||||||
$users = array();
|
$users = array();
|
||||||
while ($row = $result->fetchRow()) {
|
while ($row = $result->fetchRow()) {
|
||||||
|
|
Loading…
Reference in New Issue