fix variable name
This commit is contained in:
@@ -397,7 +397,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
|
|||||||
->execute()
|
->execute()
|
||||||
->fetchAssoc();
|
->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) {
|
if ($variety_sessions_result->rowCount() == 0) {
|
||||||
drupal_set_message("Error: Could not find matching variety session timeslot. Unable to view session membership.", 'error', FALSE);
|
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) {
|
foreach ($header_array as $column) {
|
||||||
$maximums[] = count($data[$column]);
|
$maximums[] = count($data[$column]);
|
||||||
//make the column headings a bit more user friendly
|
//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
|
//add the column headings to the CSV
|
||||||
|
Reference in New Issue
Block a user