debugging

This commit is contained in:
Nathan Coad
2016-06-08 14:12:31 +10:00
parent 527fb363e7
commit d1d9560d02

View File

@@ -140,12 +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));
if ($person->$session_role > 0) {
$text = _booking_studygroup_role_lookup($person->$session_role);
$newline[] .= "<b>" . $text . "</b> for session #" . $group->booking_session_id;
}
else {
watchdog('booking_debug2', "<pre>Leader Helper check\n@info</pre>", array('@info' => print_r( $group, true)));
$newline[] = "";
}
}