diff options
author | rub <rub@piwigo.org> | 2007-03-07 18:51:58 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-03-07 18:51:58 +0000 |
commit | 1415354b9c13b0dca0b8933206589f3e3fec972d (patch) | |
tree | 15382ec00bdced60ef1ad8e87f0b685c2bef31f9 /include/filter.inc.php | |
parent | 885393221f6c8045d858ea545b1339120eb5b625 (diff) |
0000662: Recent elements don't use sometimes time and not truncated datetime
&
Standardize system date used
git-svn-id: http://piwigo.org/svn/trunk@1876 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/filter.inc.php')
-rw-r--r-- | include/filter.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/filter.inc.php b/include/filter.inc.php index f373ca1cd..56617d9ec 100644 --- a/include/filter.inc.php +++ b/include/filter.inc.php @@ -95,7 +95,7 @@ WHERE '; category_id IN ('.$filter['visible_categories'].') and'; } $query.= ' - date_available > SUBDATE( + date_available >= SUBDATE( CURRENT_DATE,INTERVAL '.$filter['recent_period'].' DAY)'; $filter['visible_images'] = implode(',', array_from_query($query, 'image_id')); |