From 1e0455b9840757c6d01e03e270be4ed8781a9b55 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 19 Jun 2008 10:58:38 -0400 Subject: [PATCH] update_user didn't return true darcs-hash:20080619145838-5ed1f-c9c98e0df682a6ad4f1ec3028a985ff49b7c3e12.gz --- lib/openid.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.5