fix query
This commit is contained in:
@@ -388,8 +388,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
|
|||||||
|
|
||||||
//retrieve the sessions for the specified timeslot
|
//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",
|
$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))
|
array(':eid' => $event->eid, ':tid' => $timeslot_id));
|
||||||
->fetchObject();
|
|
||||||
|
|
||||||
if (! $variety_sessions) {
|
if (! $variety_sessions) {
|
||||||
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);
|
||||||
|
Reference in New Issue
Block a user