From: Florent Bruneau Date: Mon, 22 Feb 2010 10:48:11 +0000 (+0100) Subject: Fix manipulation error. X-Git-Tag: xorg/1.0.0~332^2~184 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=a56cfce5fc781da32e71b5c65a79e799606fec72;p=platal.git Fix manipulation error. Signed-off-by: Florent Bruneau --- diff --git a/core b/core index 1023ed5..fc2cfa6 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 1023ed57b6a5000ff2ebd5cfd74786f98ed4d445 +Subproject commit fc2cfa65c5e0d22fb1711827009064bc1909c1c6 diff --git a/include/webservices/manageurs.server.inc.php b/include/webservices/manageurs.server.inc.php index c561dc4..8f1a05a 100644 --- a/include/webservices/manageurs.server.inc.php +++ b/include/webservices/manageurs.server.inc.php @@ -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;