From bb9942fd3b2f485517fb6f5037ab65253fb0c105 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 29 Jun 2017 14:43:03 +1000 Subject: [PATCH] row added too early to output --- booking.earlyaccess_admin.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/booking.earlyaccess_admin.inc b/booking.earlyaccess_admin.inc index c8d5dda..67a955d 100644 --- a/booking.earlyaccess_admin.inc +++ b/booking.earlyaccess_admin.inc @@ -164,9 +164,9 @@ function booking_earlyaccess_csv_report() { else { $output[] = $field; } - $row = implode($delimiter, $output) . "\n"; - $csv .= $row; - } + } + $row = implode($delimiter, $output) . "\n"; + $csv .= $row; } //output the CSV to the browser