bugfix pfff

This commit is contained in:
Regis Houssin 2006-03-10 18:11:29 +00:00
parent 0248992ff2
commit 243e62aa39

View File

@ -59,7 +59,7 @@ if ($_POST["action"] == 'add') {
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET note='".addslashes($_POST["note"])."' WHERE idp=".$_POST["socid"]; $sql = "UPDATE ".MAIN_DB_PREFIX."societe SET note='".addslashes($_POST["note"])."' WHERE idp=".$_POST["socid"];
$result = $db->query($sql); $result = $db->query($sql);
$socid=$_POST["socid"]; // Pour retour sur fiche $socidp=$_POST["socid"]; // Pour retour sur fiche
} }
@ -69,10 +69,10 @@ if ($_POST["action"] == 'add') {
llxHeader(); llxHeader();
if ($socid > 0) if ($socidp > 0)
{ {
$societe = new Societe($db, $socid); $societe = new Societe($db, $socidp);
$societe->fetch($socid); $societe->fetch($socidp);
$h=0; $h=0;