This commit is contained in:
Nathan Coad
2018-05-05 15:29:28 +10:00
parent 49a2a68072
commit 967176b7b4

View File

@@ -635,7 +635,7 @@ function booking_variety_regn_edit_form($node, &$form_state, $nid)
$person_query = db_query("SELECT * FROM {booking_person_view} WHERE nid = :nid",
array(':nid' => $nid))->fetchAllAssoc('nid');
if (! $person) {
if (! $person_query) {
drupal_set_message("Error: Could not find matching person. Unable to edit variety session registrations.", 'error', FALSE);
drupal_goto($redirect_path);
return "";