Keep polls with bad expiration date in database

(cherry picked from commit c15ce049ad)

Conflicts:
	app/classes/Framadate/Utils.php
This commit is contained in:
FramaJosephK 2014-12-03 18:39:01 +01:00 committed by Olivier PEREZ
parent c9cdc88ffa
commit f71326f496

View File

@ -268,7 +268,7 @@ class FramaDB {
* @return array Array of old polls
*/
public function findOldPolls() {
$prepared = $this->prepare('SELECT * FROM ' . Utils::table('poll') . ' WHERE end_date < NOW() LIMIT 20');
$prepared = $this->prepare('SELECT * FROM ' . Utils::table('poll') . ' WHERE end_date < NOW() AND date_fin != 0 LIMIT 20');
$prepared->execute([]);
return $prepared->fetchAll();