X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Freminder%2Femail_warning.inc.php;h=6fc5c4066052637a881307a97ebaae372fdcb7c2;hb=0f5f1b707d93b4dc8c5875c2129bb38fcd186563;hp=e1534cc13430eb318486ffb6642eedf13756abb9;hpb=00ca0ad5370df5be4a0272364fb16a4385ffabfe;p=platal.git diff --git a/include/reminder/email_warning.inc.php b/include/reminder/email_warning.inc.php index e1534cc..6fc5c40 100644 --- a/include/reminder/email_warning.inc.php +++ b/include/reminder/email_warning.inc.php @@ -1,6 +1,6 @@ checkPerms(User::PERM_MAIL)) { + return false; + } + return count(S::v('mx_failures', array())) > 0; } }