Merge branch 'MDL-65459-master' of https://github.com/sammarshallou/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2019-05-02 00:24:46 +02:00
commit 550778cdb6
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class helper {
} else {
$name = $record->eventname;
$description = "Unknown event ({$name})";
$other = unserialize($record->other);
$other = \tool_log\helper\reader::decode_other($record->other);
}
$realuserid = $record->realuserid;

View File

@ -145,7 +145,7 @@ class send_failed_login_notifications_task extends scheduled_task {
$a->time = userdate($log->timecreated);
if (empty($log->username)) {
// Entries with no valid username. We get attempted username from the event's other field.
$other = unserialize($log->other);
$other = \tool_log\helper\reader::decode_other($log->other);
$a->info = empty($other['username']) ? '' : $other['username'];
$a->name = get_string('unknownuser');
} else {