mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #2071 sorts users by date and username
This commit is contained in:
@@ -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']))
|
||||
|
||||
Reference in New Issue
Block a user