From ae9b61828ca91bb04467b71a7213f3eca81eb9e6 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 30 Jun 2018 14:52:14 +1000 Subject: [PATCH] update user feedback --- booking.import_data.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/booking.import_data.inc b/booking.import_data.inc index 9d50bc8..a3d8aa6 100644 --- a/booking.import_data.inc +++ b/booking.import_data.inc @@ -206,10 +206,10 @@ function booking_import_data_admin_submit($form, &$form_state) } //handle study group processing only if the node id was used as a key - if ($key == 'nid') { + if (isset($record['nid'])) { $update_text .= _booking_import_studygroup_info($record['nid'], $studygroups_update_array, $studygroup_roles_update_array); - drupal_set_message(t("Updating record !nid as follows: !update", array('!nid' => $record['nid'], '!update' => $update_text))); } + drupal_set_message(t("Updating record !nid as follows: !update", array('!nid' => $record[$key], '!update' => $update_text))); //$args = $query->getArguments(); /*