Keep polls with bad expiration date in database

This commit is contained in:
FramaJosephK 2014-12-03 18:39:01 +01:00
parent dcee9d4cd6
commit c15ce049ad

View File

@ -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);