X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fprofil%2Fupdate_adresses.inc.php;h=49c09bab554f9494d0f2dfba2592a9f6951fcf09;hb=cab0809050d58f8484608e91f7555ebd69dcb451;hp=f834cbbbc7cae61e9d506f12996bdb3a39ddebb6;hpb=a3a049fc80d3707bcc76903ab89f73974c470c0c;p=platal.git diff --git a/include/profil/update_adresses.inc.php b/include/profil/update_adresses.inc.php index f834cbb..49c09ba 100644 --- a/include/profil/update_adresses.inc.php +++ b/include/profil/update_adresses.inc.php @@ -27,7 +27,7 @@ function insert_new_tel($adrid, $tel) { XDB::execute( "INSERT INTO tels SET tel_type = {?}, tel_pub = {?}, tel = {?}, uid = {?}, adrid = {?}, telid = {?}", $tel['tel_type'], $tel['tel_pub'], $tel['tel'], - Session::getInt('uid', -1), $adrid, $tel['telid']); + S::v('uid', -1), $adrid, $tel['telid']); } foreach ($adresses as $adrid => $adr) { @@ -53,7 +53,7 @@ foreach ($adresses as $adrid => $adr) { $adr['adr3'], $adr['postcode'], $adr['city'], $adr['cityid'], $adr['country'], $adr['region'], $adr['regiontxt'], $adr['pub'], $statut, - Session::getInt('uid', -1), $adrid); + S::v('uid', -1), $adrid); $telsvalues = ""; foreach ($adr['tels'] as $tel) { insert_new_tel($adrid, $tel); @@ -68,7 +68,7 @@ foreach ($adresses as $adrid => $adr) { $adr['adr2'], $adr['adr3'], $adr['postcode'], $adr['city'], $adr['cityid'], $adr['country'], $adr['region'], $adr['regiontxt'], $adr['pub'], - $statut, Session::getInt('uid', -1), $adrid); + $statut, S::v('uid', -1), $adrid); foreach ($adr['tels'] as $tel) { if ($tel['new_tel']) { insert_new_tel($adrid, $tel); @@ -86,7 +86,7 @@ foreach ($adresses as $adrid => $adr) { $tel['tel_type'], $tel['tel_pub'], $tel['tel'], - Session::getInt('uid', -1), + S::v('uid', -1), $adrid, $tel['telid']); } else { @@ -95,7 +95,7 @@ foreach ($adresses as $adrid => $adr) { uid = {?} AND adrid = {?} AND telid = {?}", - Session::getInt('uid', -1), + S::v('uid', -1), $adrid, $tel['telid']); }