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:
Petr Skoda
2010-08-18 22:18:53 +00:00
parent 99f9f85f00
commit 7b2e259c8c
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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) {