amélioration de la sécurité
This commit is contained in:
parent
d40d049363
commit
baa28f87c8
@ -194,31 +194,31 @@ if ($socid)
|
|||||||
/*
|
/*
|
||||||
* Onglets
|
* Onglets
|
||||||
*/
|
*/
|
||||||
if ($_GET["id"] > 0)
|
if ($socid > 0)
|
||||||
{
|
{
|
||||||
// Si edition contact deja existant
|
// Si edition contact deja existant
|
||||||
$contact = new Contact($db);
|
$contact = new Contact($db);
|
||||||
$return=$contact->fetch($_GET["id"], $user);
|
$return=$contact->fetch($socid, $user);
|
||||||
if ($return < 0)
|
if ($return < 0)
|
||||||
{
|
{
|
||||||
dolibarr_print_error('',$contact->error);
|
dolibarr_print_error('',$contact->error);
|
||||||
}
|
}
|
||||||
|
|
||||||
$h=0;
|
$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");
|
$head[$h][1] = $langs->trans("General");
|
||||||
$hselected=$h;
|
$hselected=$h;
|
||||||
$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");
|
$head[$h][1] = $langs->trans("PersonalInformations");
|
||||||
$h++;
|
$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");
|
$head[$h][1] = $langs->trans("ExportImport");
|
||||||
$h++;
|
$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");
|
$head[$h][1] = $langs->trans("Info");
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user