fix query

This commit is contained in:
Nathan Coad
2018-05-04 22:45:44 +10:00
parent 01ffc3424e
commit b283cadcf9

View File

@@ -388,8 +388,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
//retrieve the sessions for the specified timeslot
$variety_sessions = db_query("SELECT * FROM {booking_variety_sessions} WHERE booking_eventid = :eid and booking_variety_timeslot_id = :tid",
array(':eid' => $event->eid, ':tid' => $timeslot_id))
->fetchObject();
array(':eid' => $event->eid, ':tid' => $timeslot_id));
if (! $variety_sessions) {
drupal_set_message("Error: Could not find matching variety session timeslot. Unable to view session membership.", 'error', FALSE);