si pas de mail renseigné, on envoie au webmestre

This commit is contained in:
Christophe 2021-03-11 16:45:11 +01:00
parent e9db92d687
commit 464d14c6cf

View file

@ -125,6 +125,12 @@ function formulaires_gamucontact_traiter_dist($id_auteur = 0, $redirect = '') {
} }
} }
} }
if (!count($destinataires)) {
$email_webmaster = lire_config('email_webmaster');
if (strlen($email_webmaster)) {
$destinataires[] = $email_webmaster;
}
}
$test_mail = true; $test_mail = true;
if (count($destinataires)) { if (count($destinataires)) {