test change

This commit is contained in:
2018-07-13 15:07:12 +10:00
parent f83e3a4b09
commit 27629729ca

View File

@@ -572,17 +572,18 @@ function booking_varietysessions_csv_report($timeslot_id) {
$session_ids = drupal_json_decode($member->booking_variety_ids); $session_ids = drupal_json_decode($member->booking_variety_ids);
//watchdog('booking_debug', 'booking_varietysessions_csv_report person session ids: <pre>@info</pre>', array('@info' => print_r( $session_ids, true))); //watchdog('booking_debug', 'booking_varietysessions_csv_report person session ids: <pre>@info</pre>', array('@info' => print_r( $session_ids, true)));
//get the session id that matches our timeslot //get the session id that matches our timeslot if it exists
$sid = $session_ids[$timeslot_id]; if (isset($session_ids[$timeslot_id])) {
$sid = $session_ids[$timeslot_id];
if (! isset($data[$sid])) { if (! isset($data[$sid])) {
$data[$sid] = array(); $data[$sid] = array();
}
//add the spaces and put this element in the right array
$text = array($member->booking_firstname, $member->booking_lastname);
$data[$sid][] = implode(' ', $text);
} }
$text = array($member->booking_firstname, $member->booking_lastname);
//add the spaces and put this element in the right array
$data[$sid][] = implode(' ', $text);
} }
//watchdog('booking_debug', "<pre>Study Group CSV Report\n@info</pre>", array('@info' => print_r( $data_array, true))); //watchdog('booking_debug', "<pre>Study Group CSV Report\n@info</pre>", array('@info' => print_r( $data_array, true)));