# HG changeset patch # User Franck Deroche # Date 1542671558 -3600 # Node ID b6ea01331de2cc83f8e0111631e1e721dcac7fcc # Parent 7f0347d4c75e4692e3301601c6015ae66cc4fd16 Mail: On envoie seulement si des commentaires ont été modérés diff -r 7f0347d4c75e -r b6ea01331de2 tools/mail_comments.php --- a/tools/mail_comments.php Tue Feb 16 22:16:08 2010 +0100 +++ b/tools/mail_comments.php Tue Nov 20 00:52:38 2018 +0100 @@ -1,4 +1,4 @@ -query(" @@ -26,5 +26,7 @@ "; } - $subject = gmdate("Y-m-d") . " : Commentaires filtrés"; - mail(ADMIN_MAIL, $subject, wordwrap($tmp, 70)); + if ($i) { + $subject = gmdate("Y-m-d") . " : Commentaires filtrés"; + mail(ADMIN_MAIL, $subject, wordwrap($tmp, 70)); + }