Browse Source

Oups, reinitialiser le $row a chaque ligne

svn/attic/spip-bonux-3/118152
cedric@yterium.com 11 years ago
parent
commit
4574849644
  1. 1
      inc/importer_csv.php
  2. 2
      paquet.xml

1
inc/importer_csv.php

@ -86,6 +86,7 @@ function inc_importer_csv_dist($file, $head = false, $delim = ",", $enclos = '"'
while (($data = fgetcsv($handle, $len, $delim, $enclos)) !== FALSE) {
$data = array_map('importer_csv_importcharset',$data);
if ($head AND isset($header)) {
$row = array();
foreach ($header as $key=>$heading) {
if ($header_type[$heading]=="array"){
if (!isset($row[$heading]))

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="spip_bonux"
categorie="outil"
version="3.0.1"
version="3.0.2"
etat="stable"
compatibilite="[3.0.0-dev;3.1.*]"
logo="img_pack/spip-bonux.png"

Loading…
Cancel
Save