[SPIP Zone] r2833 - /_plugins_/_amelioration_admin_/recherche_etendue/exec/index_tous.php

Author: cedric.morin@yterium.com
Date: Mon Apr 24 13:20:49 2006
New Revision: 2833

Log:
afficher_tranches_requete : 100 fois sur le métier ...

Modified:
    _plugins_/_amelioration_admin_/recherche_etendue/exec/index_tous.php

Modified: _plugins_/_amelioration_admin_/recherche_etendue/exec/index_tous.php

--- _plugins_/_amelioration_admin_/recherche_etendue/exec/index_tous.php (original)
+++ _plugins_/_amelioration_admin_/recherche_etendue/exec/index_tous.php Mon Apr 24 13:20:49 2006
@@ -181,16 +181,15 @@
     if ($cpt > 1.5*$nb_aff) {
       $tranches = afficher_tranches_requete($cpt, 3, $tmp_var, '', $nb_aff);
     }
- $requete = "SELECT $select FROM $from$join$where$group$order LIMIT $deb_aff,$nb_aff";
      
- if ($tranches) {
+ if ($cpt) {
       if ($titre_table) echo "<div style='height: 12px;'></div>";
       echo "<div class='liste'>";
       bandeau_titre_boite2($titre_table, $icone, $couleur_claire, "black");
       echo "<table width='100%' cellpadding='3' cellspacing='0' border='0'>";
       echo $tranches;

- $result = spip_query($requete);
+ $result = spip_query("SELECT $select FROM $from$join$where$group$order LIMIT $deb_aff,$nb_aff");
       $num_rows = spip_num_rows($result);

       $ifond = 0;