This commit is contained in:
Michael RICOIS 2013-01-29 15:12:56 +00:00
parent 83378249bd
commit 2e0d38bfb3

View File

@ -439,6 +439,7 @@ foreach($tabExtract as $key)
//Specify supplemental head
$tabEntete[] = $key.'Lib';
echo ${'tab'.ucfirst($key)}."\n";
//Load generic table - always return array('code', 'label')
if ( is_array($elementsup['table']) ) {
@ -678,9 +679,10 @@ foreach($tabIdentifiant as $item)
//Traitement des libellés génériques
foreach($select['cle'] as $cle => $values)
{
echo $cle."\n";
if ( in_array($cle.'Lib', $tabEntete) && isset(${'tab'.ucfirst($cle)}) )
{
echo $cle."\n";
$retour[$cle.'Lib'] = 'Non trouvé';
$codeFromData = $tabData[$row][$cle];
foreach( ${'tab'.ucfirst($cle)} as $code => $label ) {