]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20209 fixed incorrect mail sync with ext auths
authorskodak <skodak>
Sat, 26 Sep 2009 19:17:21 +0000 (19:17 +0000)
committerskodak <skodak>
Sat, 26 Sep 2009 19:17:21 +0000 (19:17 +0000)
user/edit.php

index 777b8125bd6c0431b5a01f812d665983a7e6867d..c539fed742e72da2432593aa82fb1c24e4f3685e 100644 (file)
@@ -167,7 +167,7 @@ if ($usernew = $userform->get_data()) {
     $DB->update_record('user', $usernew);
 
     // pass a true $userold here
-    if (! $authplugin->user_update($user, $userform->get_data())) {
+    if (! $authplugin->user_update($user, $usernew)) {
         // auth update failed, rollback for moodle
         $DB->update_record('user', $user);
         print_error('cannotupdateprofile');