fix reference

This commit is contained in:
Nathan Coad
2016-06-08 14:26:19 +10:00
parent d54b7e6c12
commit c96ae20cf8

View File

@@ -129,7 +129,7 @@ function booking_studygroups_leadhelp_view_summary() {
$query->fields('m')->fields('s', array('booking_studygroup_descrip'));
$group_mapping = $query->execute()->fetchAllAssoc('sid');
*/
watchdog('booking_debug', "<pre>Leader Helper studygroup query result\n@info</pre>", array('@info' => print_r( $studygroup_list, true)));
//watchdog('booking_debug', "<pre>Leader Helper studygroup query result\n@info</pre>", array('@info' => print_r( $studygroup_list, true)));
$person_query = db_query("SELECT * FROM {booking_person_view} WHERE booking_gender = 'M' ORDER BY booking_lastname, booking_firstname")->fetchAllAssoc('nid');
@@ -140,15 +140,15 @@ function booking_studygroups_leadhelp_view_summary() {
foreach ($studygroup_list as $group) {
$session = 'session' . $group->sid;
$session_role = 'session' . $group->sid . '_role';
watchdog('booking_debug2', "<pre>Leader Helper session @session, role @role</pre>",
array('@session' => $session, '@role' => $session_role));
//watchdog('booking_debug2', "<pre>Leader Helper session @session, role @role</pre>",
// array('@session' => $session, '@role' => $session_role));
if ($person->$session_role > 0) {
$text = _booking_studygroup_role_lookup($person->$session_role);
$newline[] .= "<b>" . $text . "</b> for session #" . $group->booking_session_id;
$newline[] .= "<b>" . $text . "</b>, session #" . $person->$session;
}
else {
watchdog('booking_debug2', "<pre>Leader Helper check\n@info</pre>", array('@info' => print_r( $group, true)));
//watchdog('booking_debug2', "<pre>Leader Helper check\n@info</pre>", array('@info' => print_r( $group, true)));
$newline[] = "";
}
}