Skip to content

Commit

Permalink
Merge branch 'wip-94853-m402' into MOODLE_402_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
weilai-irl committed Oct 4, 2023
2 parents 0f528cf + 720e163 commit 9928f88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,10 @@ function xmldb_local_o365_upgrade($oldversion) {
if ($systemtokensconfig !== false) {
$systemtokensconfig = unserialize($systemtokensconfig);
foreach ($systemtokensconfig as $resource => $tokenconfig) {
// Make sure this is an array.
if (!is_array($tokenconfig)) {
continue;
}
if (array_key_exists('resource', $tokenconfig)) {
$systemtokensconfig[$resource]['tokenresource'] = $tokenconfig['resource'];
unset($systemtokensconfig[$resource]['resource']);
Expand Down

0 comments on commit 9928f88

Please sign in to comment.