Fix manipulation error.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 22 Feb 2010 10:48:11 +0000 (11:48 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 22 Feb 2010 10:48:11 +0000 (11:48 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
core
include/webservices/manageurs.server.inc.php

diff --git a/core b/core
index 1023ed5..fc2cfa6 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 1023ed57b6a5000ff2ebd5cfd74786f98ed4d445
+Subproject commit fc2cfa65c5e0d22fb1711827009064bc1909c1c6
index c561dc4..8f1a05a 100644 (file)
@@ -100,23 +100,7 @@ function get_annuaire_infos($method, $params) {
                            "SELECT  t.display_tel AS tel, t.tel_type, t.link_id as adrid
                               FROM  profile_phones    AS t
                         INNER JOIN  profile_addresses AS a ON (t.link_id = a.id AND t.uid = a.pid)
-                             WHERE  t.u
-        $res = XDB::query(
-                "SELECT  email
-                   FROM  profile_job
-                  WHERE  pid = {?}", $user->id());
-        $res = $res->fetchAllAssoc();
-        $pro = array();
-        foreach ($res as $res_it) {
-            if ($res_it['email'] != '') {
-                $pro[] = $res_it['email'];
-                if ($email_directory == $res_it['email']) {
-                    $email_type = "pro";
-                }
-            }
-        }
-        $page->assign('list_email_pro', $pro);
-id = {?} AND t.link_type = 'address'
+                             WHERE  t.pid = {?} AND t.link_type = 'address'
                                     AND NOT FIND_IN_SET('pro', a.statut)", $uid);
                 while ($tel = $restel->next()) {
                     $array['adresse'][$adrid_index[$tel['adrid']]]['tels'][] = $tel;