From 8ede2eca235198e7c8bffaf847aabcbbc540888d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 14 Jul 2004 10:15:21 +0000 Subject: [PATCH] Correction pour register_global=off --- htdocs/contact/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index c4d8316c566..d9fc828f67f 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -64,7 +64,7 @@ if ($_GET["action"] == 'delete') } -if ($action == 'update') +if ($_POST["action"] == 'update') { $contact = new Contact($db); @@ -94,7 +94,7 @@ if ($action == 'update') $error = $contact->error; } -if ($action == 'create_user') +if ($_GET["action"] == 'create_user') { $nuser = new User($db); $contact = new Contact($db);