related to #1931 & #1946 Added Posted date filter

This commit is contained in:
MatthieuLP
2023-07-25 16:47:25 +02:00
parent 87c4fad23e
commit b5dc413b40
5 changed files with 121 additions and 27 deletions
+1 -1
View File
@@ -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');
}