From 53b81e2a0118fccdd1b2010a8302cb680e79cdf0 Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Wed, 15 Sep 2004 23:27:19 +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-api.php3   | 2 +-
 inc-compilo-index.php3 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc-compilo-api.php3 b/inc-compilo-api.php3
index be4d2b86fd..ea74fb2395 100644
--- a/inc-compilo-api.php3
+++ b/inc-compilo-api.php3
@@ -59,7 +59,7 @@ class Boucle {
 class Champ {
 	var $type = 'champ';
 	var $nom_champ;
-	var $nom_boucle= false; // seulement si boucle explicite
+	var $nom_boucle= ''; // seulement si boucle explicite
 	var $cond_avant, $cond_apres; // tableaux d'objets
 	var $fonctions;  // filtre explicites
 	var $etoile;
diff --git a/inc-compilo-index.php3 b/inc-compilo-index.php3
index cd69616bc2..9da70d48ca 100644
--- a/inc-compilo-index.php3
+++ b/inc-compilo-index.php3
@@ -21,7 +21,7 @@ function index_pile($idb, $nom_champ, &$boucles, $explicite='') {
 
 	$i = 0;
 	
-	if ($explicite !== false) {
+	if (strlen($explicite)) {
 	// Recherche d'un champ dans un etage superieur
 	  while (($idb != $explicite) && ($idb !='')) {
 #		spip_log("Cherchexpl: $nom_champ '$idb' '$i'");
-- 
GitLab