]> git.mjollnir.org Git - moodle.git/commitdiff
Whoops ... left and old line in there during the last fix
authormoodler <moodler>
Mon, 28 Apr 2003 02:43:18 +0000 (02:43 +0000)
committermoodler <moodler>
Mon, 28 Apr 2003 02:43:18 +0000 (02:43 +0000)
user/edit.php

index 1e69a60fb9e236103ce471cee2f72022aa0ec44f..bd7c38dfa613b4c410c40828a7c805371b88aa4e 100644 (file)
@@ -49,7 +49,6 @@
             $usernew->username = trim(moodle_strtolower($usernew->username));
         }
 
-        $usernew->username = trim(moodle_strtolower($usernew->username));
         if (empty($_FILES['imagefile'])) {
             $_FILES['imagefile'] = NULL;    // To avoid using uninitialised variable later
         }
@@ -73,7 +72,7 @@
             $usernew->timemodified = time();
 
             if (isadmin()) {
-                if ($usernew->newpassword) {
+                if (!empty($usernew->newpassword)) {
                     $usernew->password = md5($usernew->newpassword);
                 }
             } else {