From 387a543f6a94442c5851092a470182bc64ae675a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 10 Mar 2006 18:40:01 +0000 Subject: [PATCH] bugfix --- htdocs/socnote.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/socnote.php b/htdocs/socnote.php index 4c891a71ba1..58e14c815e7 100644 --- a/htdocs/socnote.php +++ b/htdocs/socnote.php @@ -60,6 +60,7 @@ if ($_POST["action"] == 'add') { $result = $db->query($sql); $_GET["socid"]=$_POST["socid"]; // Pour retour sur fiche + Header("Location:socnote.php?socid=".$socid); } @@ -69,10 +70,10 @@ if ($_POST["action"] == 'add') { llxHeader(); -if ($_GET["socid"] > 0) +if ($socidp > 0) { - $societe = new Societe($db, $_GET["socid"]); - $societe->fetch($_GET["socid"]); + $societe = new Societe($db, $socidp); + $societe->fetch($socidp); $h=0;