From c230ea32da03ef14a0db1900082223dc98ae0031 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 19 May 2016 22:19:40 +1000 Subject: [PATCH] bug --- booking.helper.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/booking.helper.inc b/booking.helper.inc index b20a615..ccc6fa2 100644 --- a/booking.helper.inc +++ b/booking.helper.inc @@ -1320,17 +1320,17 @@ function _booking_paypal_form_builder($node, &$form_state, $person, $invoiceid, * This will be used to select which fields to import/export to/from a CSV */ function _booking_get_person_fields() { - $list_of_columns = array(); + $list_of_columns = new stdClass(); $query = db_query('SHOW COLUMNS FROM {booking_person}'); $result = $query->fetchAll(); foreach ($result as $column) { - watchdog('booking_debug', "
Database column for booking_person\n@info
", array('@info' => print_r( $column, true))); + //watchdog('booking_debug', "
Database column for booking_person\n@info
", array('@info' => print_r( $column, true))); $field = $column->Field; - $list_of_columns->$field = $field; + $list_of_columns[$field] = $field; } - //watchdog('booking_debug', "
Database columns for booking_person\n@info
", array('@info' => print_r( $list_of_columns, true))); + watchdog('booking_debug', "
Database columns for booking_person\n@info
", array('@info' => print_r( $list_of_columns, true))); return $list_of_columns; }