MDL-21068 do not show admin usernames in cron logs
authorPetr Skoda <skodak@moodle.org>
Thu, 18 Mar 2010 22:00:09 +0000 (22:00 +0000)
committerPetr Skoda <skodak@moodle.org>
Thu, 18 Mar 2010 22:00:09 +0000 (22:00 +0000)
lib/moodlelib.php

index abd25d9..e97f4f4 100644 (file)
@@ -7487,8 +7487,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);
         }