From 0762f91d16d49479f9a9034c857e8417f4f2e880 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 24 Jan 2018 12:45:17 +0100 Subject: [PATCH] Remove comment --- export_webdav.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/export_webdav.php b/export_webdav.php index 07c23d2..1fd75c0 100644 --- a/export_webdav.php +++ b/export_webdav.php @@ -42,9 +42,6 @@ foreach (Db::getInstance()->ExecuteS(' } $id_customers = array_keys($customers_to_import); - -//@todo : newsletter - for($i=0, $l=count($id_customers); $i < $l; $i+=5000) { // First order foreach (Db::getInstance()->ExecuteS(' @@ -88,7 +85,19 @@ for($i=0, $l=count($id_customers); $i < $l; $i+=5000) { $filename = date('Y-m-d', mktime()).'.csv'; $f = fopen('extracts/webdav/'.$filename, 'w'); -fputcsv($f, array('id_customer', 'firstname', 'lastname', 'email', 'ip_registration_newsletter', 'newsletter', 'langue', 'date de premier achat', 'Date de dernier achat', 'discount'), ';', '"'); +$header = array( + 'id_customer', + 'firstname', + 'lastname', + 'email', + 'ip_registration_newsletter', + 'newsletter', + 'langue', + 'date de premier achat', + 'Date de dernier achat', + 'discount', +); +fputcsv($f, $header, ';', '"'); foreach ($customers_to_import as $customer) { fwrite($f, implode(';', array_values($customer))."\n"); }