From 8b8ff6ff4ce06f1020b575093cc73683008939e3 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Thu, 2 Apr 2009 02:49:54 +0000 Subject: [PATCH] "MDL-13224, convert type of courses limit, everything coming from database is string, merged from 1.9" --- my/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/my/index.php b/my/index.php index 9edf5d549a..9670f5bf22 100644 --- a/my/index.php +++ b/my/index.php @@ -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); -- 2.39.5