MDL-23856 fixed incorrect integer comparison, we should not use === or !== because one may be integer and the other string
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ $filtertype = optional_param('filtertype', '', PARAM_ALPHA);
|
||||
$filterselect = optional_param('filterselect', 0, PARAM_INT);
|
||||
|
||||
$url = new moodle_url('/notes/index.php');
|
||||
if ($courseid !== SITEID) {
|
||||
if ($courseid != SITEID) {
|
||||
$url->param('course', $courseid);
|
||||
}
|
||||
if ($userid !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user