mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02: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
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@
|
||||||
|
|
||||||
// limits the number of courses showing up
|
// limits the number of courses showing up
|
||||||
$courses_limit = 21;
|
$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_limit = $CFG->mycoursesperpage;
|
||||||
}
|
}
|
||||||
$courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, $courses_limit);
|
$courses = get_my_courses($USER->id, 'visible DESC,sortorder ASC', '*', false, $courses_limit);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue