From baa28f87c881897952018e10f5c48c224b028176 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 11 Mar 2006 15:36:33 +0000 Subject: [PATCH] =?UTF-8?q?am=E9lioration=20de=20la=20s=E9curit=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/contact/fiche.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index 39774fcd3a8..120760a6e67 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -194,31 +194,31 @@ if ($socid) /* * Onglets */ -if ($_GET["id"] > 0) +if ($socid > 0) { // Si edition contact deja existant $contact = new Contact($db); - $return=$contact->fetch($_GET["id"], $user); + $return=$contact->fetch($socid, $user); if ($return < 0) { dolibarr_print_error('',$contact->error); } $h=0; - $head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$_GET["id"]; + $head[$h][0] = DOL_URL_ROOT.'/contact/fiche.php?id='.$socid; $head[$h][1] = $langs->trans("General"); $hselected=$h; $h++; - $head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$_GET["id"]; + $head[$h][0] = DOL_URL_ROOT.'/contact/perso.php?id='.$socid; $head[$h][1] = $langs->trans("PersonalInformations"); $h++; - $head[$h][0] = DOL_URL_ROOT.'/contact/exportimport.php?id='.$_GET["id"]; + $head[$h][0] = DOL_URL_ROOT.'/contact/exportimport.php?id='.$socid; $head[$h][1] = $langs->trans("ExportImport"); $h++; - $head[$h][0] = DOL_URL_ROOT.'/contact/info.php?id='.$_GET["id"]; + $head[$h][0] = DOL_URL_ROOT.'/contact/info.php?id='.$socid; $head[$h][1] = $langs->trans("Info"); $h++;