correction d'un bug de parenthese dans une query MySQL, et suppression du mysql_free_...
authorPascal Corpet <pascal.corpet@m4x.org>
Tue, 4 Jan 2005 00:06:40 +0000 (00:06 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:10 +0000 (23:27 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-214

htdocs/referent.php

index c4f13eb..074f19c 100644 (file)
@@ -76,7 +76,7 @@ if (Env::has('Chercher')) {
 
     $clause_from = ' FROM  mentor        AS m
                 LEFT JOIN  auth_user_md5 AS a ON(m.uid = a.user_id)
-               INNER JOIN  aliases       AS l ON (a.user_id=l.id AND FIND_IN_SET(\'bestalias\',l.flags)
+               INNER JOIN  aliases       AS l ON (a.user_id=l.id AND FIND_IN_SET(\'bestalias\',l.flags))
                 LEFT JOIN  mentor_pays   AS mp ON(m.uid = mp.uid)
                 LEFT JOIN  mentor_secteurs AS ms ON(m.uid = ms.uid)';
 
@@ -138,7 +138,6 @@ if (Env::has('Chercher')) {
             $nb_pages = (int) ($nb_resultats/$nb_max_resultats_par_page) + 1;
             $page->assign('nb_pages_total', $nb_pages);
             $page->assign('page_courante', $page_courante);
-            mysql_free_result($res);
         }
     }
 }