amlioration de la scurit
This commit is contained in:
parent
6c1ff2d6d3
commit
0248992ff2
@ -65,9 +65,9 @@ llxHeader();
|
||||
*/
|
||||
|
||||
$soc = new Societe($db);
|
||||
$soc->id = $_GET["socid"];
|
||||
$soc->fetch($_GET["socid"]);
|
||||
$soc->info($_GET["socid"]);
|
||||
$soc->id = $socid;
|
||||
$soc->fetch($socid);
|
||||
$soc->info($socid);
|
||||
|
||||
$h=0;
|
||||
|
||||
|
||||
@ -110,7 +110,7 @@ if ($_GET["action"] == 'delete')
|
||||
*
|
||||
*/
|
||||
$soc = new Societe($db);
|
||||
$soc->id = $_GET["socid"];
|
||||
$soc->id = $socid;
|
||||
|
||||
if ( $soc->fetch($soc->id) )
|
||||
{
|
||||
|
||||
@ -59,7 +59,7 @@ if ($_POST["action"] == 'add') {
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."societe SET note='".addslashes($_POST["note"])."' WHERE idp=".$_POST["socid"];
|
||||
$result = $db->query($sql);
|
||||
|
||||
$_GET["socid"]=$_POST["socid"]; // Pour retour sur fiche
|
||||
$socid=$_POST["socid"]; // Pour retour sur fiche
|
||||
}
|
||||
|
||||
|
||||
@ -69,10 +69,10 @@ if ($_POST["action"] == 'add') {
|
||||
|
||||
llxHeader();
|
||||
|
||||
if ($_GET["socid"] > 0)
|
||||
if ($socid > 0)
|
||||
{
|
||||
$societe = new Societe($db, $_GET["socid"]);
|
||||
$societe->fetch($_GET["socid"]);
|
||||
$societe = new Societe($db, $socid);
|
||||
$societe->fetch($socid);
|
||||
|
||||
|
||||
$h=0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user