MDL-65459 Logging: Missed two points relying on non-JSON log format

This commit is contained in:
sam marshall 2019-05-01 11:55:26 +01:00
parent 09cbe51999
commit ef3f92c70a
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 {