From ece0f2b8ee5135acc9cc9a2dfca0979bcc7aaa64 Mon Sep 17 00:00:00 2001 From: Wytze van der Raay Date: Fri, 5 Dec 2014 08:58:56 +0000 Subject: [PATCH] Fix bug in the CCA Policy mailing script which obscured its logging somewhat and essentially defeated the restart mechanism based on the 'lastid' file. --- scripts/send_policy_cca_20140916.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/send_policy_cca_20140916.php b/scripts/send_policy_cca_20140916.php index 6de5207..4d8cd66 100644 --- a/scripts/send_policy_cca_20140916.php +++ b/scripts/send_policy_cca_20140916.php @@ -108,12 +108,12 @@ $count = 0; $query = " - SELECT `fname`, `lname`, `email` + SELECT `id`, `fname`, `lname`, `email` FROM `users` WHERE `deleted` = '0000-00-00 00:00:00' AND `modified` != '0000-00-00 00:00:00' AND `verified` = '1' - + AND `id` >= '$lastid' ORDER BY `id`"; $res = mysql_query($query);