diff --git a/booking.helper.inc b/booking.helper.inc index df4b892..63e5183 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1320,7 +1320,7 @@ function _booking_details_email_summary($node) { if (variable_get('booking_enable_earlyaccess_codes', 0) == 1) { //look up the actual code since the booking_person node available at this time only has the primary key for that table $earlyaccess_query = db_query("SELECT booking_earlyaccess_code FROM {booking_earlyaccess_codes} where cid = :code", - array(':code' => $values['booking_earlyaccess_code_id'])) + array(':code' => $node->booking_earlyaccess_code_id)) ->fetchObject(); $rows[] = array(t('Early Access Code:'), t('!code', array('!code' => $earlyaccess_query->booking_earlyaccess_code))); }