Removed POST usage.

This commit is contained in:
Laurent Destailleur 2014-01-20 14:23:37 +01:00
parent 5f65b2a97f
commit 30aae38efa

View File

@ -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);
}