From: Evan Prodromou Date: Wed, 18 Jun 2008 12:39:41 +0000 (-0400) Subject: fix syntax error in finishopenidlogin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=65816a6e2fe22ace47daceb0070640bdf8d6cff6;p=quix0rs-gnu-social.git fix syntax error in finishopenidlogin darcs-hash:20080618123941-84dde-ec6e2fdef8c561714e509dc47e14aa47c58a9c44.gz --- diff --git a/actions/finishopenidlogin.php b/actions/finishopenidlogin.php index 3d0c8f2779..2b3616ffae 100644 --- a/actions/finishopenidlogin.php +++ b/actions/finishopenidlogin.php @@ -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();