MDL-20209 fixed incorrect mail sync with ext auths

This commit is contained in:
skodak
2009-09-26 19:16:53 +00:00
parent 04019ee089
commit 601cd4ebd7
+1 -1
View File
@@ -140,7 +140,7 @@
}
// pass a true $userold here
if (! $authplugin->user_update($user, $userform->get_data(false))) {
if (! $authplugin->user_update($user, stripslashes_recursive($usernew))) {
// auth update failed, rollback for moodle
update_record('user', addslashes_object($user));
error('Failed to update user data on external auth: '.$user->auth.