update_user didn't return true

darcs-hash:20080619145838-5ed1f-c9c98e0df682a6ad4f1ec3028a985ff49b7c3e12.gz
This commit is contained in:
Evan Prodromou 2008-06-19 10:58:38 -04:00
parent 4015b61ff5
commit 1e0455b984

View File

@ -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;
}