From 8fe52761a4fa65abcdb6dddf905ac71802bb839d Mon Sep 17 00:00:00 2001
From: "Committo,Ergo:sum" <esj@rezo.net>
Date: Thu, 26 May 2005 21:03:03 +0000
Subject: [PATCH] criteres emboites, sans nuire au critere lang

---
 inc-criteres.php3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc-criteres.php3 b/inc-criteres.php3
index ebb3da1570..7f21c21837 100644
--- a/inc-criteres.php3
+++ b/inc-criteres.php3
@@ -365,10 +365,10 @@ function calculer_critere_DEFAUT($idb, &$boucles, $crit) {
 	  { $op = '=';
 	    $col = $crit->op;
 	    $val = $crit->op;
-
+	    spip_log("op: $val");
 	    // Cas special {lang} : aller chercher $GLOBALS['spip_lang']
 	    if ($val == 'lang')
-	      $val = '".$GLOBALS[\'spip_lang\']."';
+	      $val = array('$GLOBALS[\'spip_lang\']');
 	    else {
 	    // Si id_parent, comparer l'id_parent avec l'id_objet
 	    // de la boucle superieure.... faudrait verifier qu'il existe
-- 
GitLab