From 36b97a8f2c60fd12fc7e590e6c7fa93d79775fd4 Mon Sep 17 00:00:00 2001 From: Cerdic <cedric@yterium.com> Date: Tue, 4 Nov 2008 16:32:09 +0000 Subject: [PATCH] attention a ne pas optimiser abusivement une boucle qui comporte une clause orderby ! --- ecrire/public/composer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ecrire/public/composer.php b/ecrire/public/composer.php index bd019d9fa7..31af98a967 100644 --- a/ecrire/public/composer.php +++ b/ecrire/public/composer.php @@ -591,6 +591,8 @@ function calculer_select ($select = array(), $from = array(), // ou dans // <BOUCLE6(ARTICLES){id_mot=2}{statut==.*} />#TOTAL_BOUCLE<//B6> // <BOUCLE7(ARTICLES){id_mot>0}{statut?} />#TOTAL_BOUCLE<//B7> + // penser a regarder aussi la clause orderby pour ne pas simplifier abusivement + // <BOUCLE9(ARTICLES){recherche truc}{par titre}>#ID_ARTICLE</BOUCLE9> list($t,$c) = each($from); reset($from); @@ -599,6 +601,7 @@ function calculer_select ($select = array(), $from = array(), calculer_jointnul($t, $select, $e) OR calculer_jointnul($t, $join, $e) OR calculer_jointnul($t, $where, $e) OR + calculer_jointnul($t, $orderby, $e) OR calculer_jointnul($t, $having, $e)) && count($afrom[$t])) { reset($afrom[$t]); -- GitLab