From 5a3d7de0b6b7517ca9660938838343468a88b727 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 20 Dec 2007 01:09:16 +0000 Subject: [PATCH] - Return emergency contact info to a component in the query. --- admin/reports_students.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/reports_students.inc.php b/admin/reports_students.inc.php index d4be5d1..365544f 100644 --- a/admin/reports_students.inc.php +++ b/admin/reports_students.inc.php @@ -481,8 +481,8 @@ $report_students_fields = array( $emergencycontact_join = ''; if(in_array('emergencycontacts', $components)) { /* No need to put the year in here, students.id is unique across years */ - $emergencycontact_join = "LEFT JOIN emergencycontact ON ( - students.id=emergencycontact.students_id )"; + $emergencycontact_join = "LEFT JOIN emergencycontact ON + emergencycontact.students_id=students.id "; } $q = " FROM students @@ -491,7 +491,7 @@ $report_students_fields = array( LEFT JOIN projects ON projects.registrations_id=students.registrations_id LEFT JOIN projectdivisions ON projectdivisions.id=projects.projectdivisions_id LEFT JOIN projectcategories ON projectcategories.id=projects.projectcategories_id - LEFT JOIN emergencycontact ON emergencycontact.students_id=students.id + $emergencycontact_join $tour_join $partner_join WHERE