Skip to content
Snippets Groups Projects
Commit f71326f4 authored by FramaJosephK's avatar FramaJosephK Committed by Olivier PEREZ
Browse files

Keep polls with bad expiration date in database

(cherry picked from commit c15ce049)

Conflicts:
	app/classes/Framadate/Utils.php
parent c9cdc88f
No related branches found
No related tags found
No related merge requests found
...@@ -268,7 +268,7 @@ class FramaDB { ...@@ -268,7 +268,7 @@ class FramaDB {
* @return array Array of old polls * @return array Array of old polls
*/ */
public function findOldPolls() { 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([]); $prepared->execute([]);
return $prepared->fetchAll(); return $prepared->fetchAll();
......
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