mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
fixes #2071 sorts users by date and username
This commit is contained in:
parent
a5be190ef2
commit
fbae0b735c
4 changed files with 80 additions and 8 deletions
|
@ -34,6 +34,15 @@ function ws_users_getList($params, &$service)
|
|||
return new PwgError(WS_ERR_INVALID_PARAM, 'Invalid input parameter order');
|
||||
}
|
||||
|
||||
// Insensitive case sort order
|
||||
if (isset($params['order']))
|
||||
{
|
||||
if (strpos($params['order'], "username") !== false)
|
||||
{
|
||||
$params['order'] = str_ireplace("username", "LOWER(username)", $params['order']);
|
||||
}
|
||||
}
|
||||
|
||||
$where_clauses = array('1=1');
|
||||
|
||||
if (!empty($params['user_id']))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue