]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11090
authorthepurpleblob <thepurpleblob>
Wed, 10 Dec 2008 09:39:02 +0000 (09:39 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 10 Dec 2008 09:39:02 +0000 (09:39 +0000)
Added absent trim - Thanks Tim :-)

Merged from STABLE_19

mod/lesson/view.php

index dc22327544c5e4a5b4b85a6604f138ec2f884be0..6db1be901a605b29f19c019d75f34fed0cd13149 100644 (file)
@@ -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) {