mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
"MDL-13224, convert type of courses limit, everything coming from database is string, merged from 1.9"
This commit is contained in:
parent
0c34c7eb50
commit
8b8ff6ff4c
@ -61,7 +61,8 @@
|
||||
|
||||
// limits the number of courses showing up
|
||||
$courses_limit = 21;
|
||||
if (!empty($CFG->mycoursesperpage) && is_int($CFG->mycoursesperpage)) {
|
||||
$CFG->mycoursesperpage = (int)$CFG->mycoursesperpage;
|
||||
if (!empty($CFG->mycoursesperpage)) {
|
||||
$courses_limit = $CFG->mycoursesperpage;
|
||||
}
|
||||
$courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, $courses_limit);
|
||||
|
Loading…
x
Reference in New Issue
Block a user