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
@@ -32,7 +32,7 @@ $url = new moodle_url('/message/edit.php');
|
||||
if ($userid !== $USER->id) {
|
||||
$url->param('id', $userid);
|
||||
}
|
||||
if ($course !== SITEID) {
|
||||
if ($course != SITEID) {
|
||||
$url->param('course', $course);
|
||||
}
|
||||
$PAGE->set_url($url);
|
||||
|
||||
Reference in New Issue
Block a user