diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-06-19 10:58:38 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-06-19 10:58:38 -0400 |
commit | 1e0455b9840757c6d01e03e270be4ed8781a9b55 (patch) | |
tree | ad2c6ce8b60037a08d3bbde211ff5842f09cbf18 /lib | |
parent | 4015b61ff5123470a1c158589c57cb2c3958121e (diff) |
update_user didn't return true
darcs-hash:20080619145838-5ed1f-c9c98e0df682a6ad4f1ec3028a985ff49b7c3e12.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/openid.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/openid.php b/lib/openid.php index 9adf8e9f7..8cf614bc2 100644 --- a/lib/openid.php +++ b/lib/openid.php @@ -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; } |