From 92c82f5129e5a800071a75b700dcb9ff1361af75 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 21 Jul 2004 16:19:56 +0000 Subject: [PATCH] Modif register_global Et c'est finit pour aujourd'hui ce soir on sort !!! --- htdocs/societe/notify/fiche.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/societe/notify/fiche.php b/htdocs/societe/notify/fiche.php index 9762157a70f..dfe712bb0ca 100644 --- a/htdocs/societe/notify/fiche.php +++ b/htdocs/societe/notify/fiche.php @@ -31,14 +31,14 @@ if ($user->societe_id > 0) llxHeader(); -if ($HTTP_POST_VARS["action"] == 'add') +if ($_POST["action"] == 'add') { $sql = "DELETE FROM ".MAIN_DB_PREFIX."notify_def"; - $sql .= " WHERE fk_soc=".$socid." AND fk_contact=".$HTTP_POST_VARS["contactid"]." AND fk_action=".$HTTP_POST_VARS["actionid"]; + $sql .= " WHERE fk_soc=".$socid." AND fk_contact=".$_POST["contactid"]." AND fk_action=".$_POST["actionid"]; if ($db->query($sql)) { $sql = "INSERT INTO ".MAIN_DB_PREFIX."notify_def (datec,fk_soc, fk_contact, fk_action)"; - $sql .= " VALUES (now(),$socid,".$HTTP_POST_VARS["contactid"].",".$HTTP_POST_VARS["actionid"].")"; + $sql .= " VALUES (now(),$socid,".$_POST["contactid"].",".$_POST["actionid"].")"; if ($db->query($sql)) { @@ -71,8 +71,8 @@ if ($action == "delete") * */ $soc = new Societe($db); -$soc->id = $socid; -if ( $soc->fetch($socid) ) +$soc->id = $_GET["socid"]; +if ( $soc->fetch($soc->id) ) { $head[0][0] = DOL_URL_ROOT.'/soc.php?socid='.$soc->id;