diff --git a/login/change_password.php b/login/change_password.php index 5188ea52b07a6..b020cb3ae971a 100644 --- a/login/change_password.php +++ b/login/change_password.php @@ -30,7 +30,7 @@ $id = optional_param('id', SITEID, PARAM_INT); // current course $url = new moodle_url('/login/change_password.php'); -if ($id !== SITEID) { +if ($id != SITEID) { $url->param('id', $id); } $PAGE->set_url($url); diff --git a/message/edit.php b/message/edit.php index c3ed9f19263e6..d04c78eaee9a0 100644 --- a/message/edit.php +++ b/message/edit.php @@ -32,7 +32,7 @@ if ($userid !== $USER->id) { $url->param('id', $userid); } -if ($course !== SITEID) { +if ($course != SITEID) { $url->param('course', $course); } $PAGE->set_url($url); diff --git a/notes/index.php b/notes/index.php index 53fed7dcd215d..005944910e8de 100644 --- a/notes/index.php +++ b/notes/index.php @@ -16,7 +16,7 @@ $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) { diff --git a/pluginfile.php b/pluginfile.php index de9730363b5b7..c62b413219526 100644 --- a/pluginfile.php +++ b/pluginfile.php @@ -146,7 +146,7 @@ //TODO: nobody implemented this yet in grade edit form!! send_file_not_found(); - if ($CFG->forcelogin || $course->id !== SITEID) { + if ($CFG->forcelogin || $course->id != SITEID) { require_login($course); } @@ -244,7 +244,7 @@ // Respect forcelogin and require login unless this is the site.... it probably // should NEVER be the site - if ($CFG->forcelogin || $course->id !== SITEID) { + if ($CFG->forcelogin || $course->id != SITEID) { require_login($course); } @@ -488,7 +488,7 @@ } else if ($filearea === 'section') { if ($CFG->forcelogin) { require_login($course); - } else if ($course->id !== SITEID) { + } else if ($course->id != SITEID) { require_login($course); } diff --git a/repository/manage_instances.php b/repository/manage_instances.php index 3973ddaee8390..5478dd67e0edc 100644 --- a/repository/manage_instances.php +++ b/repository/manage_instances.php @@ -61,7 +61,7 @@ $url->param('contextid', $contextid); $baseurl->param('contextid', $contextid); } -if ($usercourseid !== SITEID) { +if ($usercourseid != SITEID) { $url->param('usercourseid', $usercourseid); }