From 30aae38efa8c11aa2650c9c6e6ae5a69c6b35d76 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Jan 2014 14:23:37 +0100 Subject: [PATCH] Removed POST usage. --- htdocs/adherents/fiche.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/fiche.php b/htdocs/adherents/fiche.php index 0847af47624..c70a247f502 100644 --- a/htdocs/adherents/fiche.php +++ b/htdocs/adherents/fiche.php @@ -583,7 +583,7 @@ if ($user->rights->adherent->creer && $action == 'confirm_valid' && $confirm == if ($result >= 0 && ! count($object->errors)) { // Send confirmation Email (selon param du type adherent sinon generique) - if ($object->email && ! empty($_POST["send_mail"])) + if ($object->email && GEPOST("send_mail")) { $result=$object->send_an_email($adht->getMailOnValid(),$conf->global->ADHERENT_MAIL_VALID_SUBJECT,array(),array(),array(),"","",0,2); if ($result < 0) @@ -622,7 +622,7 @@ if ($user->rights->adherent->supprimer && $action == 'confirm_resign') if ($result >= 0 && ! count($object->errors)) { - if ($object->email && $_POST["send_mail"]) + if ($object->email && GETPOST("send_mail")) { $result=$object->send_an_email($adht->getMailOnResiliate(),$conf->global->ADHERENT_MAIL_RESIL_SUBJECT,array(),array(),array(),"","",0,-1); }