Fix bug in the CCA Policy mailing script which obscured its logging somewhat

and essentially defeated the restart mechanism based on the 'lastid' file.
This commit is contained in:
Wytze van der Raay 2014-12-05 08:58:56 +00:00
parent add8566161
commit ece0f2b8ee

View file

@ -108,12 +108,12 @@ $count = 0;
$query = " $query = "
SELECT `fname`, `lname`, `email` SELECT `id`, `fname`, `lname`, `email`
FROM `users` FROM `users`
WHERE `deleted` = '0000-00-00 00:00:00' WHERE `deleted` = '0000-00-00 00:00:00'
AND `modified` != '0000-00-00 00:00:00' AND `modified` != '0000-00-00 00:00:00'
AND `verified` = '1' AND `verified` = '1'
AND `id` >= '$lastid'
ORDER BY `id`"; ORDER BY `id`";
$res = mysql_query($query); $res = mysql_query($query);