From: Evan Prodromou Date: Thu, 19 Jun 2008 14:58:38 +0000 (-0400) Subject: update_user didn't return true X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e0455b9840757c6d01e03e270be4ed8781a9b55;p=quix0rs-gnu-social.git update_user didn't return true darcs-hash:20080619145838-5ed1f-c9c98e0df682a6ad4f1ec3028a985ff49b7c3e12.gz --- diff --git a/lib/openid.php b/lib/openid.php index 9adf8e9f71..8cf614bc26 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; }