This commit is contained in:
Michael RICOIS 2013-01-29 15:19:43 +00:00
parent 4656c46482
commit 52abcbbbbb

View File

@ -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;
}
}