From 9bfee1b85d42d2ef4494ded55c2d8471292b6337 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 15 Aug 2004 15:38:02 +0000 Subject: [PATCH] Fix: register_globals = off --- htdocs/comm/fiche.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index b86e305efe9..205acb93cbe 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -50,9 +50,9 @@ if ($sortfield == "") { } -if ($action == 'attribute_prefix') { - $societe = new Societe($db, $socid); - $societe->attribute_prefix($db, $socid); +if ($_GET["action"] == 'attribute_prefix') { + $societe = new Societe($db, $_GET["socid"]); + $societe->attribute_prefix($db, $_GET["socid"]); } if ($action == 'recontact') {