try a different fix
This commit is contained in:
@@ -149,12 +149,15 @@ function booking_earlyaccess_csv_report() {
|
||||
$result = $codelist_query->execute();
|
||||
|
||||
foreach ($result as $record) {
|
||||
$header_array[] = $record->key;
|
||||
foreach ($record as $key => $value) {
|
||||
$header_array[] = $key;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
watchdog('booking_debug', "EarlyAccess CSV query result: @info", array('@info' => var_export( $result, TRUE)));
|
||||
watchdog('booking_debug', "EarlyAccess CSV header: @info", array('@info' => var_export($header_array, TRUE)));
|
||||
|
||||
|
||||
//calculate the header row for CSV
|
||||
$header = implode($delimiter, $header_array);
|
||||
$csv .= $header . "\n";
|
||||
|
Reference in New Issue
Block a user