MDL-71242 core_course: Validate the value of the sort argument
commit68c90578e7a13cfa188bc07a9ce6fe02f9444d01
authorMihail Geshoski <mihail@moodle.com>
Wed, 12 May 2021 09:46:31 +0000 (12 17:46 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 8 Jul 2021 21:29:26 +0000 (8 23:29 +0200)
treee8298f802b41134f704fed7a5c4e37572d47a62b
parent0afab1d0f9584f8af6fa8f47acf326f526a043c3
MDL-71242 core_course: Validate the value of the sort argument

This change validates the value of the sort argument in
course_get_recent_courses().
course/lib.php