mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
MDL-77983 core_user: Avoid passing nulls to base64_decode
This commit is contained in:
parent
017a3274fe
commit
13b48a0ae8
@ -533,7 +533,7 @@ class provider implements
|
||||
$sessiondata = (object) array_map(function($record) {
|
||||
return [
|
||||
'state' => $record->state,
|
||||
'sessdata' => base64_decode($record->sessdata),
|
||||
'sessdata' => ($record->sessdata !== null) ? base64_decode($record->sessdata) : '',
|
||||
'timecreated' => transform::datetime($record->timecreated),
|
||||
'timemodified' => transform::datetime($record->timemodified),
|
||||
'firstip' => $record->firstip,
|
||||
|
Loading…
x
Reference in New Issue
Block a user