From 52abcbbbbb6ab0254f05e700a30ea5c0d1320df7 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Tue, 29 Jan 2013 15:19:43 +0000 Subject: [PATCH] =?UTF-8?q?Libell=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- batch/enrichissement.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/batch/enrichissement.php b/batch/enrichissement.php index 90cdeb53..b1eefedb 100644 --- a/batch/enrichissement.php +++ b/batch/enrichissement.php @@ -681,14 +681,11 @@ foreach($tabIdentifiant as $item) { if ( in_array($cle.'Lib', $tabEntete) && isset(${'tab'.ucfirst($cle)}) ) { - echo $cle."\n"; - $retour[$cle.'Lib'] = 'Non trouvé'; $codeFromData = $tabData[$row][$cle]; - echo 'tab'.ucfirst($cle)."\n"; - foreach( ${'tab'.ucfirst($cle)} as $code => $label ) { - if ( $codeFromData == $code ) { - echo $retour[$cle.'Lib'] = $label; + foreach( ${'tab'.ucfirst($cle)} as $item ) { + if ( $codeFromData == $item['code'] ) { + $retour[$cle.'Lib'] = $item['label']; break; } }