fix variable name

This commit is contained in:
Nathan Coad
2018-05-04 23:00:01 +10:00
parent 63a17dcefc
commit 7cd93a09f1

View File

@@ -397,7 +397,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
->execute()
->fetchAssoc();
watchdog('booking_debug', 'booking_varietysessions_csv_report variety sessions: <pre>@info</pre>', array('@info' => print_r( $variety_sessions_result, true)));
watchdog('booking_debug', 'booking_varietysessions_csv_report variety sessions: <pre>@info</pre>', array('@info' => print_r( $variety_sessions, true)));
/*
if ($variety_sessions_result->rowCount() == 0) {
drupal_set_message("Error: Could not find matching variety session timeslot. Unable to view session membership.", 'error', FALSE);
@@ -452,7 +452,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
foreach ($header_array as $column) {
$maximums[] = count($data[$column]);
//make the column headings a bit more user friendly
$column_headings[] = $variety_sessions_result[$column]->booking_variety_descrip;
$column_headings[] = $variety_sessions[$column]->booking_variety_descrip;
}
//add the column headings to the CSV