Bug 412 Erreur SQL sur la recherche pro
authorx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 4 Jun 2006 12:37:48 +0000 (12:37 +0000)
committerx2001corpet <x2001corpet@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 4 Jun 2006 12:37:48 +0000 (12:37 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@286 839d8a87-29fc-0310-9880-83ba4fa771e5

ChangeLog
htdocs/referent.php

index 1358c23..162106a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,11 @@ New :
     * Geoloc :
             Dynamic maps using geodesix plugin                              -Car
 
+Bug/Wish :
+
+    * Search :
+        - #412: Error SQL in big referent searches.                         -Car
+
 From 0.9.8 Branch :
 
     * Xnet :
index 4ad554f..372ed43 100644 (file)
@@ -121,7 +121,7 @@ if (Env::has('Chercher')) {
             $page->assign_by_ref('personnes',$personnes);
             while( (list($uid, $prenom, $nom, $promo, $bestalias,
                         $expertise_bd, $pays_id, $secteur_id, $ss_secteur_id) = $res->next())
-                    || ($nb_resultats >= $nb_max_resultats_total)){
+                    && ($nb_resultats < $nb_max_resultats_total)){
                 if ($current_uid != $uid) {
                     $current_uid = $uid;
                     $page_correspondante = (int)($nb_resultats / $nb_max_resultats_par_page) +1;