From 61fd59d7d6c5c970a4a8278228b9b857010f47f7 Mon Sep 17 00:00:00 2001 From: "Committo,Ergo:sum" <esj@rezo.net> Date: Wed, 15 Sep 2004 21:34:31 +0000 Subject: [PATCH] =?UTF-8?q?API=20du=20compilateur=20plus=20rationnelle=20-?= =?UTF-8?q?--=20mais=20n'=C3=A9limine=20pas=20completement=20les=20risque?= =?UTF-8?q?=20de=20bug...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc-compilo-index.php3 | 4 ++-- inc-criteres.php3 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc-compilo-index.php3 b/inc-compilo-index.php3 index 065d857fcf..cd69616bc2 100644 --- a/inc-compilo-index.php3 +++ b/inc-compilo-index.php3 @@ -24,7 +24,7 @@ function index_pile($idb, $nom_champ, &$boucles, $explicite='') { if ($explicite !== false) { // Recherche d'un champ dans un etage superieur while (($idb != $explicite) && ($idb !='')) { - spip_log("Cherchexpl: $nom_champ '$idb' '$i'"); +# spip_log("Cherchexpl: $nom_champ '$idb' '$i'"); $i++; $idb = $boucles[$idb]->id_parent; } @@ -215,7 +215,7 @@ function calculer_argument_precedent($idb, $nom_champ, &$boucles) { if ($boucles[$idb]->externe) index_pile ($idb, $nom_champ, $boucles); // reserver chez soi-meme // reserver chez le parent et renvoyer l'habituel $Pile[$SP]['nom_champ'] - spip_log("boucles[$idb]->id_parent " . $boucles[$idb]->id_parent); +# spip_log("boucles[$idb]->id_parent " . $boucles[$idb]->id_parent); return index_pile ($boucles[$idb]->id_parent, $nom_champ, $boucles); } diff --git a/inc-criteres.php3 b/inc-criteres.php3 index b1502c742c..c36ae7f357 100644 --- a/inc-criteres.php3 +++ b/inc-criteres.php3 @@ -364,7 +364,7 @@ function calculer_critere_DEFAUT($idb, &$boucles, $param, $not) { } // Traitement general des relations externes - if ($s = $relations_externes[$type][$col]) { + if ($s = $tables_relations[$type][$col]) { $col_table = $s; $boucle->from[] = "$col_table AS $col_table"; $boucle->where[] = "$id_field=$col_table." . $primary; -- GitLab