mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
fc238f329d
Since cm_info::customdata can be of any type, we need to cast it to an array first before checking for custom completion rules. Otherwise, an exception can be thrown (e.g. customdata has been set as an stdClass)