X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fprofile%2Fpage.inc.php;h=de655ec98c78ec54f2a5ac8df97de765d70e49cf;hb=ce0b2c6f3fc4e7c524df32f56f1bc8e8d573bb1a;hp=78749ee17eda15f4b5fd44d948113e76ec7eb8ff;hpb=353f2d2b11c4e3c6c0bc3553813368b6f42fa9c6;p=platal.git diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index 78749ee..de655ec 100644 --- a/modules/profile/page.inc.php +++ b/modules/profile/page.inc.php @@ -1,6 +1,6 @@ pid(), $this->link_type); if ($res->numRows() > 0) { @@ -179,7 +179,7 @@ class ProfilePhones implements ProfileSetting private function saveTel($pid, $telid, array &$phone) { if ($phone['tel'] != '') { - XDB::execute("INSERT INTO profile_phones (uid, link_type, link_id, tel_id, tel_type, + XDB::execute("INSERT INTO profile_phones (pid, link_type, link_id, tel_id, tel_type, search_tel, display_tel, pub, comment) VALUES ({?}, {?}, {?}, {?}, {?}, {?}, {?}, {?}, {?})", @@ -191,7 +191,7 @@ class ProfilePhones implements ProfileSetting public function save(ProfilePage &$page, $field, $value) { XDB::execute("DELETE FROM profile_phones - WHERE uid = {?} AND link_type = {?} AND link_id = {?}", + WHERE pid = {?} AND link_type = {?} AND link_id = {?}", $page->pid(), $this->link_type, $this->link_id); $this->saveTels($page->pid(), $field, $value); }