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
@@ -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);