-
Bug
-
Resolution: Fixed
-
Major
-
2.3.9, 2.4.6, 2.5.2, 2.6
-
MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE
-
w04_
MDL-43746_m27_courselogin -
-
2
-
BACKEND Sprint 9
In function require_course_login (/lib/moodlelib.php) $issite is never true if parameter $courseorid is not an object.
$issite = (is_object($courseorid) and $courseorid->id == SITEID)
|
or (!is_object($courseorid) and $courseorid == SITEID);
|
is not working correctly because = has a higher precedence than and/or in PHP. It should be:
$issite = (is_object($courseorid) && $courseorid->id == SITEID)
|
|| (!is_object($courseorid) && $courseorid == SITEID);
|
- is a regression caused by
-
MDL-25981 Refactor code around get_fast_modinfo to improve quality, add plugin hooks
-
- Closed
-