Merge branch 'cleaning-polls' into 'master'
Keep polls with bad expiration date in database related to issue #25 See merge request !29
This commit is contained in:
commit
c4f011ba97
@ -260,7 +260,7 @@ class Utils
|
|||||||
*/
|
*/
|
||||||
public static function cleaning_polls($connect, $log_txt) {
|
public static function cleaning_polls($connect, $log_txt) {
|
||||||
$connect->StartTrans();
|
$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);
|
$sql = $connect->Prepare($req);
|
||||||
$cleaning = $connect->Execute($sql);
|
$cleaning = $connect->Execute($sql);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user