]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix syntax error in finishopenidlogin
authorEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 12:39:41 +0000 (08:39 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 18 Jun 2008 12:39:41 +0000 (08:39 -0400)
darcs-hash:20080618123941-84dde-ec6e2fdef8c561714e509dc47e14aa47c58a9c44.gz

actions/finishopenidlogin.php

index 3d0c8f2779cfcee78cd5fac42ff7c1e3cb6f3237..2b3616ffae8074c5103dd6eaa7527b825b057635 100644 (file)
@@ -264,8 +264,9 @@ class FinishopenidloginAction extends Action {
                        $profile->delete();
                }
 
+               $result = oid_link_user($user->id, $canonical, $display);
                
-               if (!oid_link_user($user->id, $canonical, $display) {
+               if (!$result) {
                        # Try to clean up...
                        $user->delete();
                        $profile->delete();