update_user didn't return true
darcs-hash:20080619145838-5ed1f-c9c98e0df682a6ad4f1ec3028a985ff49b7c3e12.gz
This commit is contained in:
parent
4015b61ff5
commit
1e0455b984
|
@ -218,7 +218,7 @@ function oid_update_user(&$user, &$sreg) {
|
|||
|
||||
if (!$profile->update($orig_profile)) {
|
||||
common_server_error(_t('Error saving the profile.'));
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
$orig_user = clone($user);
|
||||
|
@ -229,6 +229,8 @@ function oid_update_user(&$user, &$sreg) {
|
|||
|
||||
if (!$user->update($orig_user)) {
|
||||
common_server_error(_t('Error saving the user.'));
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user