MDL-20209 fixed incorrect mail sync with ext auths

This commit is contained in:
skodak 2009-09-26 19:17:21 +00:00
parent 02b5087e14
commit 64521d31ac

View 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');