Skip to content
Snippets Groups Projects
Commit c4f011ba authored by JosephK's avatar JosephK
Browse files

Merge branch 'cleaning-polls' into 'master'

Keep polls with bad expiration date in database

related to issue #25

See merge request !29
parents dcee9d4c c15ce049
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment