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') {