Bug 3289 - Fixed bad conditional check that made news items not show up until the day after pubdate.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Liz Rea 2009-06-04 11:22:00 -05:00 committed by Henri-Damien LAURENT
parent c05c931160
commit d80e50abbe
1 changed files with 2 additions and 2 deletions

View File

@ -328,11 +328,11 @@ sub GetNewsToDisplay {
SELECT *,timestamp AS newdate
FROM opac_news
WHERE (
expirationdate > CURRENT_DATE()
expirationdate >= CURRENT_DATE()
OR expirationdate IS NULL
OR expirationdate = '00-00-0000'
)
AND `timestamp` < CURRENT_DATE()
AND `timestamp` <= CURRENT_DATE()
AND lang = ?
ORDER BY number
"; # expirationdate field is NOT in ISO format?