mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 09:22:21 +02:00
@@ -15,6 +15,11 @@
|
||||
*/
|
||||
function ws_groups_getList($params, &$service)
|
||||
{
|
||||
if (!preg_match(PATTERN_ORDER, $params['order']))
|
||||
{
|
||||
return new PwgError(WS_ERR_INVALID_PARAM, 'Invalid input parameter order');
|
||||
}
|
||||
|
||||
$where_clauses = array('1=1');
|
||||
|
||||
if (!empty($params['name']))
|
||||
|
||||
@@ -29,6 +29,11 @@ function ws_users_getList($params, &$service)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (!preg_match(PATTERN_ORDER, $params['order']))
|
||||
{
|
||||
return new PwgError(WS_ERR_INVALID_PARAM, 'Invalid input parameter order');
|
||||
}
|
||||
|
||||
$where_clauses = array('1=1');
|
||||
|
||||
if (!empty($params['user_id']))
|
||||
|
||||
Reference in New Issue
Block a user