From 2fafcfd844c17cf9c9a0c0f742b7584a31beace4 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 16 Feb 2009 23:34:03 +0000 Subject: [PATCH] double negatives ftw... now do it properly -- do not email deleted judges! --- admin/communication.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/admin/communication.inc.php b/admin/communication.inc.php index d6bce06..d72d4f0 100644 --- a/admin/communication.inc.php +++ b/admin/communication.inc.php @@ -4,19 +4,19 @@ "SELECT firstname, lastname, organization, email FROM users WHERE types LIKE '%committee' AND deleted='no'"), "judges_all"=>array("name"=>"Judges from all years","query"=> - "SELECT firstname, lastname, email FROM judges WHERE deleted!='no' ORDER BY email"), + "SELECT firstname, lastname, email FROM judges WHERE deleted='no' ORDER BY email"), "judges_active_thisyear"=>array("name"=>"Judges active for this year", "query"=> - "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges.deleted!='no' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id ORDER BY email"), + "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges.deleted='no' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id ORDER BY email"), "judges_inactive"=>array("name"=>"Judges not active for this year", "query"=> - "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges LEFT JOIN judges_years ON judges_years.judges_id=judges.id WHERE judges.deleted!='no' AND judges_years.year!='".$config['FAIRYEAR']."' ORDER BY email"), + "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges LEFT JOIN judges_years ON judges_years.judges_id=judges.id WHERE judges.deleted='no' AND judges_years.year!='".$config['FAIRYEAR']."' ORDER BY email"), "judges_active_complete_thisyear"=>array("name"=>"Judges active for this year and complete", "query"=> - "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges.deleted!='no' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id AND judges.complete='yes' ORDER BY email"), + "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges.deleted='no' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id AND judges.complete='yes' ORDER BY email"), "judges_active_incomplete_thisyear"=>array("name"=>"Judges active for this year but not complete", "query"=> - "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges.deleted!='no' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id AND judges.complete!='yes' ORDER BY email"), + "SELECT DISTINCT(judges.id), firstname, lastname, email FROM judges,judges_years WHERE judges.deleted='no' AND judges_years.year='".$config['FAIRYEAR']."' AND judges.id=judges_years.judges_id AND judges.complete!='yes' ORDER BY email"), "participants_complete_thisyear"=>array("name"=>"Participants complete this year","query"=> "SELECT firstname, lastname, students.email FROM students,registrations WHERE students.registrations_id=registrations.id AND registrations.year='".$config['FAIRYEAR']."' AND ( registrations.status='complete' OR registrations.status='paymentpending') ORDER BY students.email"),