fix syntax error in finishopenidlogin

darcs-hash:20080618123941-84dde-ec6e2fdef8c561714e509dc47e14aa47c58a9c44.gz
This commit is contained in:
Evan Prodromou 2008-06-18 08:39:41 -04:00
parent 4a0b1a9ea9
commit 65816a6e2f

View 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();