Skip to content

Commit

Permalink
MDL-11090
Browse files Browse the repository at this point in the history
Added absent trim - Thanks Tim :-)

Merged from STABLE_19
  • Loading branch information
thepurpleblob committed Dec 10, 2008
1 parent e8f99ab commit 5448544
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/lesson/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5448544

Please sign in to comment.