]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8973 fixed typo in signup form validation; merged from MOODLE_18_STABLE
authorskodak <skodak>
Mon, 26 Mar 2007 19:28:20 +0000 (19:28 +0000)
committerskodak <skodak>
Mon, 26 Mar 2007 19:28:20 +0000 (19:28 +0000)
login/signup_form.php

index 20176bae5216c3eab98f491d512bfeb997c73292..85e31cd3f952646503aa7e9f6112105c927d2c39 100644 (file)
@@ -79,7 +79,7 @@ class login_signup_form extends moodleform {
 
         //check if user exists in external db
         //TODO: maybe we should check all enabled plugins instead
-        if ($authplugin->user_exists($user->username)) {
+        if ($authplugin->user_exists($data['username'])) {
             $errors['username'] = get_string('usernameexists');
         }