Keep polls with bad expiration date in database
(cherry picked from commit c15ce049ad
)
Conflicts:
app/classes/Framadate/Utils.php
This commit is contained in:
parent
c9cdc88ffa
commit
f71326f496
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user