From c15ce049ad12d8aeb08623c1936fa17e6f81941f Mon Sep 17 00:00:00 2001 From: FramaJosephK Date: Wed, 3 Dec 2014 18:39:01 +0100 Subject: [PATCH] Keep polls with bad expiration date in database --- app/classes/Framadate/Utils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/classes/Framadate/Utils.php b/app/classes/Framadate/Utils.php index ca333c2..4986732 100644 --- a/app/classes/Framadate/Utils.php +++ b/app/classes/Framadate/Utils.php @@ -260,7 +260,7 @@ class Utils */ public static function cleaning_polls($connect, $log_txt) { $connect->StartTrans(); - $req = 'SELECT * FROM sondage WHERE date_fin < NOW() LIMIT 20'; + $req = 'SELECT * FROM sondage WHERE date_fin < NOW() && date_fin != 0 LIMIT 20'; $sql = $connect->Prepare($req); $cleaning = $connect->Execute($sql);