From d7108b5a71835c1cfe465d1b584d51185027972e Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 19 May 2016 22:15:54 +1000 Subject: [PATCH] fix dereference --- booking.helper.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/booking.helper.inc b/booking.helper.inc index 736db5c..7902f66 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1325,7 +1325,8 @@ function _booking_get_person_fields() { $result = $query->fetchAll(); foreach ($result as $column) { - $list_of_columns->$column['Field'] = $column['Field']; + $field = $column->Field; + $list_of_columns->$field = $field; } watchdog('booking_debug', "
Database columns for booking_person\n@info
", array('@info' => print_r( $list_of_columns, true)));