mirror of
https://github.com/moodle/moodle.git
synced 2025-03-22 00:20:37 +01:00
The json_decode function does not accept a null, which is the traditional default for get_user_preferences. By passing a default of am empty string we avoid issues in PHP 8.1.