mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
@@ -834,7 +834,7 @@ SELECT id
|
||||
|
||||
if (isset($params['date_posted']))
|
||||
{
|
||||
if (!preg_match('/^(7d|30d|6m|1y)$/', $params['date_posted']))
|
||||
if (!preg_match('/^(7d|30d|6m|1y|)$/', $params['date_posted']))
|
||||
{
|
||||
return new PwgError(WS_ERR_INVALID_PARAM, 'Invalid parameter date_posted');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user