mirror of
https://github.com/moodle/moodle.git
synced 2025-04-06 17:03:33 +02:00
The changes - 1) Ensure courses exist before we loop to avoid PHP warning. 2) Checked that the number of courses to display do not exceed the max setting. 3) Used format_string() instead of format_text(). 4) Used the course context instead of system context.