|
|
|
@ -157,7 +157,7 @@ class OC_User_Database extends OC_User_Backend { |
|
|
|
|
$displayNames = array(); |
|
|
|
|
$query = OC_DB::prepare('SELECT `uid`, `displayname` FROM `*PREFIX*users`' |
|
|
|
|
. ' WHERE LOWER(`displayname`) LIKE LOWER(?) OR ' |
|
|
|
|
. 'LOWER(`uid`) LIKE LOWER(?)', $limit, $offset); |
|
|
|
|
. 'LOWER(`uid`) LIKE LOWER(?) ORDER BY `uid` ASC', $limit, $offset); |
|
|
|
|
$result = $query->execute(array('%' . $search . '%', '%' . $search . '%')); |
|
|
|
|
$users = array(); |
|
|
|
|
while ($row = $result->fetchRow()) { |
|
|
|
@ -231,7 +231,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 LOWER(`uid`) LIKE LOWER(?)', $limit, $offset); |
|
|
|
|
$query = OC_DB::prepare('SELECT `uid` FROM `*PREFIX*users` WHERE LOWER(`uid`) LIKE LOWER(?) ORDER BY `uid` ASC', $limit, $offset); |
|
|
|
|
$result = $query->execute(array('%' . $search . '%')); |
|
|
|
|
$users = array(); |
|
|
|
|
while ($row = $result->fetchRow()) { |
|
|
|
|