mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
check expiration date in search()
This commit is contained in:
parent
96f858cbdd
commit
e23b9f09ad
|
@ -1311,6 +1311,8 @@ class SeedDMS_Core_DMS {
|
|||
$tmp = explode('-', $param2, 3);
|
||||
if(count($tmp) != 3)
|
||||
return false;
|
||||
if(!self::checkDate($param2, 'Y-m-d'))
|
||||
return false;
|
||||
$ts = mktime(0, 0, 0, $tmp[1], $tmp[2], $tmp[0]);
|
||||
} else
|
||||
$ts = mktime(0, 0, 0)-365*86400; /* Start of today - 1 year */
|
||||
|
|
Loading…
Reference in New Issue
Block a user