forked from GNUsocial/gnu-social
return true on successful save of openid
darcs-hash:20080618112624-84dde-76bbb4338585852abef7ed6ced26784a77f01a34.gz
This commit is contained in:
parent
c5e8828d7e
commit
d1a895c5b1
@ -145,12 +145,11 @@ class FinishaddopenidAction extends Action {
|
|||||||
$oid->user_id = $user->id;
|
$oid->user_id = $user->id;
|
||||||
$oid->created = DB_DataObject_Cast::dateTime();
|
$oid->created = DB_DataObject_Cast::dateTime();
|
||||||
|
|
||||||
common_debug('Saving ' . print_r($oid, TRUE), __FILE__);
|
|
||||||
|
|
||||||
if (!$oid->insert()) {
|
if (!$oid->insert()) {
|
||||||
$err = PEAR::getStaticProperty('DB_DataObject','lastError');
|
$err = PEAR::getStaticProperty('DB_DataObject','lastError');
|
||||||
common_debug('DB error ' . $err->code . ': ' . $err->message, __FILE__);
|
common_debug('DB error ' . $err->code . ': ' . $err->message, __FILE__);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user