mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
8e98f82f12
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.