Skip to content

Commit

Permalink
"MDL-13224, convert type of courses limit, everything coming from dat…
Browse files Browse the repository at this point in the history
…abase is string, merged from 1.9"
  • Loading branch information
dongsheng committed Apr 2, 2009
1 parent 0c34c7e commit 8b8ff6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion my/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8b8ff6f

Please sign in to comment.