diff --git a/booking.earlyaccess_admin.inc b/booking.earlyaccess_admin.inc index 67a955d..3328f21 100644 --- a/booking.earlyaccess_admin.inc +++ b/booking.earlyaccess_admin.inc @@ -149,7 +149,7 @@ function booking_earlyaccess_csv_report() { $result = $codelist_query->execute(); //calculate the header row for CSV - $header = implode( $delimiter, array_keys($data)); + $header = implode( $delimiter, array_keys($result)); $csv .= $header . "\n"; //add the records