return true on successful save of openid

darcs-hash:20080618112624-84dde-76bbb4338585852abef7ed6ced26784a77f01a34.gz
This commit is contained in:
Evan Prodromou 2008-06-18 07:26:24 -04:00
parent c5e8828d7e
commit d1a895c5b1

View File

@ -145,12 +145,11 @@ class FinishaddopenidAction extends Action {
$oid->user_id = $user->id;
$oid->created = DB_DataObject_Cast::dateTime();
common_debug('Saving ' . print_r($oid, TRUE), __FILE__);
if (!$oid->insert()) {
$err = PEAR::getStaticProperty('DB_DataObject','lastError');
common_debug('DB error ' . $err->code . ': ' . $err->message, __FILE__);
return false;
}
return true;
}
}