Pour les portables sur manageurs
authorAurelien LAJOIE <aurelien.lajoie@m4x.org>
Sun, 30 Jan 2005 22:45:06 +0000 (22:45 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:57 +0000 (23:27 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-416

include/webservices/manageurs.server.inc.php

index 6a13fa9..148e4a1 100644 (file)
@@ -27,8 +27,9 @@ function get_annuaire_infos($method, $params) {
         //on ne recupere pas les adresses inutilement
         if(!isset($params[2])){
             $res = $globals->xdb->iterRow(
-                    "SELECT  a.mobile AS cell, a.naissance AS age
+                    "SELECT  aq.profile_mobile AS cell, a.naissance AS age
                        FROM  auth_user_md5 AS a
+                      INNER JOIN auth_user_quick AS aq ON (a.user_id = aq.user_id)
                       WHERE  a.matricule = {?}", $params[1]);
         }
         else{