fix dreference

This commit is contained in:
2017-09-07 16:05:33 +10:00
parent aff52e4349
commit 54ad2404be

View File

@@ -1320,7 +1320,7 @@ function _booking_details_email_summary($node) {
if (variable_get('booking_enable_earlyaccess_codes', 0) == 1) { 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 //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", $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(); ->fetchObject();
$rows[] = array(t('Early Access Code:'), t('!code', array('!code' => $earlyaccess_query->booking_earlyaccess_code))); $rows[] = array(t('Early Access Code:'), t('!code', array('!code' => $earlyaccess_query->booking_earlyaccess_code)));
} }