X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Freminder%2Femail_warning.inc.php;h=887f5a9d252ada3722d875882ef0c3f230c7f1f7;hb=1f64f1a78896aa527b081e5c7526963524f9bf8b;hp=1b8f90179903ecbcae0b0135a1d62334a675b8a2;hpb=c3c43c0ebe734e2b43b5d5fdb6010d08358bc34b;p=platal.git diff --git a/include/reminder/email_warning.inc.php b/include/reminder/email_warning.inc.php index 1b8f901..887f5a9 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; } }