Update card.php

This commit is contained in:
Laurent Destailleur 2022-09-07 14:23:24 +02:00 committed by GitHub
parent ea6f751fd3
commit 56f1964c68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -602,7 +602,7 @@ if (empty($reshook)) {
$result = $object->create($user);
if (empty($error) && !empty($conf->mailing->enabled) && !empty($object->email) && !empty($object->no_email)) {
if (empty($error) && !empty($conf->mailing->enabled) && !empty($object->email) && $object->no_email == 1) {
// Add mass emailing flag into table mailing_unsubscribe
$result = $object->setNoEmail($object->no_email);
if ($result < 0) {