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:
parent
add8566161
commit
ece0f2b8ee
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue