try resetting
This commit is contained in:
@@ -148,7 +148,7 @@ function booking_earlyaccess_csv_report() {
|
||||
->orderBy('cid');
|
||||
$result = $codelist_query->execute();
|
||||
|
||||
$firstresult = reset($result);
|
||||
$firstresult = $result;
|
||||
watchdog('booking', "CSV firstresult: @info", array('@info' => var_export($firstresult, TRUE)));
|
||||
foreach ($firstresult as $record) {
|
||||
watchdog('booking', "CSV first record for header: @info", array('@info' => var_export($record, TRUE)));
|
||||
@@ -165,6 +165,7 @@ function booking_earlyaccess_csv_report() {
|
||||
watchdog('booking', "CSV before: @info", array('@info' => var_export($csv, TRUE)));
|
||||
|
||||
//add the records
|
||||
reset($result);
|
||||
foreach ($result as $record) {
|
||||
$output = array();
|
||||
//each keypair in the record
|
||||
|
Reference in New Issue
Block a user