From 65816a6e2fe22ace47daceb0070640bdf8d6cff6 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 18 Jun 2008 08:39:41 -0400 Subject: [PATCH] fix syntax error in finishopenidlogin darcs-hash:20080618123941-84dde-ec6e2fdef8c561714e509dc47e14aa47c58a9c44.gz --- actions/finishopenidlogin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();