&& → AND

This commit is contained in:
JosephK 2014-12-03 19:00:33 +01:00
parent c4f011ba97
commit 54ae3e3b9d

View File

@ -260,7 +260,7 @@ class Utils
*/
public static function cleaning_polls($connect, $log_txt) {
$connect->StartTrans();
$req = 'SELECT * FROM sondage WHERE date_fin < NOW() && date_fin != 0 LIMIT 20';
$req = 'SELECT * FROM sondage WHERE date_fin < NOW() AND date_fin != 0 LIMIT 20';
$sql = $connect->Prepare($req);
$cleaning = $connect->Execute($sql);