forked from GNUsocial/gnu-social
do some commits
darcs-hash:20080619033212-84dde-2f7227fe16c7015b03121424520ebd74d4b96762.gz
This commit is contained in:
@@ -51,15 +51,15 @@ function oid_link_user($id, $canonical, $display) {
|
||||
$oid->display = $display;
|
||||
$oid->created = DB_DataObject_Cast::dateTime();
|
||||
|
||||
common_debug('oid = '.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;
|
||||
}
|
||||
|
||||
common_debug('oid = '.print_r($oid, TRUE), __FILE__);
|
||||
|
||||
# For some reason, autocommit is turned off
|
||||
|
||||
$oid->query('COMMIT');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user