mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
By default json_decode() returns object for associative arrays. That was not a problem till now becuause array_key_exists() worked with objects too. But in php74 that emits a warning. So we need to ensure that the information arriving to it is an array, allowing everything to continue working ok.