MDL-10074 User profile edition uses wrong variable for the (fatal) error message.; patch by Iñaki Arenaza; backported from HEAD

This commit is contained in:
skodak
2007-06-10 19:08:27 +00:00
parent 938122d7d2
commit 9d0466e2a6
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -78,7 +78,7 @@
if (! $authplugin->user_update($user, $userform->get_data(false))) {
// auth update failed, rollback for moodle
update_record('user', addslashes_object($user));
error('Failed to update user data on external auth: '.$usernew->auth.
error('Failed to update user data on external auth: '.$user->auth.
'. See the server logs for more details.');
}
+1 -1
View File
@@ -87,7 +87,7 @@
if (! $authplugin->user_update($user, $userform->get_data(false))) {
// auth update failed, rollback for moodle
update_record('user', addslashes_object($user));
error('Failed to update user data on external auth: '.$usernew->auth.
error('Failed to update user data on external auth: '.$user->auth.
'. See the server logs for more details.');
}