Update html.formmail.class.php

This commit is contained in:
Frédéric FRANCE 2021-03-15 18:22:50 +01:00 committed by GitHub
parent bde33fb6a3
commit dd4b8f2880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -828,7 +828,7 @@ class FormMail extends Form
$out .= '<td>';
if ($this->withmaindocfile) {
if ($this->withmaindocfile) {
// withmaindocfile is set to 1 or -1 to show the checkbox (-1 = checked or 1 = not checked)
if (GETPOSTISSET('sendmail')) {
$this->withmaindocfile = (GETPOST('addmaindocfile', 'alpha') ? -1 : 1);