From 74ea0b70501eb948efff7f21a82abe93f6c5c61f Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 29 Mar 2010 07:50:49 +0000 Subject: [PATCH] Only consider complete/paymentpending for tour scheduling. --- admin/tours_sa.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/admin/tours_sa.php b/admin/tours_sa.php index 8e9751a..d8bf905 100644 --- a/admin/tours_sa.php +++ b/admin/tours_sa.php @@ -209,8 +209,11 @@ $q=mysql_query("SELECT students.id,students.grade, students.schools_id, students.firstname, students.lastname FROM students + LEFT JOIN registrations ON registrations.id=students.registrations_id WHERE students.year='{$config['FAIRYEAR']}' + AND ( registrations.status='complete' + OR registrations.status='paymentpending' ) ORDER BY students.id ");