Browse files

MDL-21068 do not show admin usernames in cron logs

  • Loading branch information...
1 parent 31eb0fd commit e92e4b8ab0ad9f1c8c89c4de0fc02190fa196410 @skodak skodak committed Mar 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/moodlelib.php
View
2 lib/moodlelib.php
@@ -6705,8 +6705,8 @@ function notify_login_failures() {
"\n\n".get_string('notifyloginfailuresmessageend','',$CFG->wwwroot)."\n\n";
/// For each destination, send mail
+ mtrace('Emailing admins about '. $count .' failed login attempts');
foreach ($recip as $admin) {
- mtrace('Emailing '. $admin->username .' about '. $count .' failed login attempts');
email_to_user($admin,get_admin(), $subject, $body);
}

0 comments on commit e92e4b8

Please sign in to comment.