diff --git a/inc-compilo-index.php3 b/inc-compilo-index.php3 index 654d323bee65502204beca9ac27c22246cda2dd9..8c4329ca32d008676c61dff9ebfcdc14de967291 100644 --- a/inc-compilo-index.php3 +++ b/inc-compilo-index.php3 @@ -103,7 +103,7 @@ function index_tables_en_pile($idb, $nom_champ, &$boucles) $boucles[$idb]->from[$t] = $excep[0]; } $e = $excep[1]; - if ($e != $c) $e .= ' AS '.$c; + if ($e != $nom_champ) $e .= ' AS '.$c; } return array("$t.$e", $c);