This commit is contained in:
Nathan Coad
2018-06-17 09:18:29 +10:00
parent 138f608a26
commit 4bad8b2d46

View File

@@ -75,13 +75,6 @@ function booking_studygroups_csv_report($group_id) {
}
//watchdog('booking_debug', "<pre>Study Group CSV Report\n@info</pre>", array('@info' => print_r( $data_array, true)));
// Check if we had no data added, that means there were no people in this study group
if (empty($data)) {
drupal_set_message("Error: Study group $group_id has no people assigned.", 'error', FALSE);
drupal_goto('admin/booking/studygroups');
return "";
}
//calculate the CSV layout
$header_array = array_keys($data);
$maximums = array();