mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-65459 Logging: Missed two points relying on non-JSON log format
This commit is contained in:
parent
09cbe51999
commit
ef3f92c70a
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user