mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
MDL-11090
Added absent trim - Thanks Tim :-) Merged from STABLE_19
This commit is contained in:
parent
e8f99abc68
commit
5448544271
@ -53,7 +53,7 @@
|
||||
$correctpass = false;
|
||||
if (!empty($userpassword)) {
|
||||
// with or without md5 for backward compatibility (MDL-11090)
|
||||
if (($lesson->password == md5(trim($userpassword))) or ($lesson->password == $userpassword)) {
|
||||
if (($lesson->password == md5(trim($userpassword))) or ($lesson->password == trim($userpassword))) {
|
||||
$USER->lessonloggedin[$lesson->id] = true;
|
||||
$correctpass = true;
|
||||
if ($lesson->highscores) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user