remove rowcount

This commit is contained in:
Nathan Coad
2018-05-04 23:05:01 +10:00
parent 48a6db74ed
commit be7b7db7d8

View File

@@ -398,7 +398,7 @@ function booking_varietysessions_csv_report($timeslot_id) {
->fetchAllAssoc('vid'); ->fetchAllAssoc('vid');
watchdog('booking_debug', 'booking_varietysessions_csv_report variety sessions: <pre>@info</pre>', array('@info' => print_r( $variety_sessions, true))); watchdog('booking_debug', 'booking_varietysessions_csv_report variety sessions: <pre>@info</pre>', array('@info' => print_r( $variety_sessions, true)));
if ($variety_sessions->rowCount() == 0) { 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);
drupal_goto('admin/config/booking/variety'); drupal_goto('admin/config/booking/variety');
return ""; return "";