]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
update_user didn't return true
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 19 Jun 2008 14:58:38 +0000 (10:58 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 19 Jun 2008 14:58:38 +0000 (10:58 -0400)
darcs-hash:20080619145838-5ed1f-c9c98e0df682a6ad4f1ec3028a985ff49b7c3e12.gz

lib/openid.php

index 9adf8e9f71c1762d644c96e2329b9ada526e0cf9..8cf614bc26cb6bcec05644da2181445bf315ded1 100644 (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;
 }