Fix do not send email if approval error

This commit is contained in:
Laurent Destailleur 2019-02-08 14:58:46 +01:00
parent 2e1201b7b0
commit 8412a91576

View File

@ -479,7 +479,10 @@ if ($action == 'confirm_valid')
$error++; $error++;
setEventMessages(null, $object->errors, 'errors'); setEventMessages(null, $object->errors, 'errors');
} }
}
if (! $error)
{
// To // To
$destinataire = new User($db); $destinataire = new User($db);
$destinataire->fetch($object->fk_user); $destinataire->fetch($object->fk_user);