do some commits

darcs-hash:20080619033212-84dde-2f7227fe16c7015b03121424520ebd74d4b96762.gz
This commit is contained in:
Evan Prodromou
2008-06-18 23:32:12 -04:00
parent 0620e9f668
commit 4aedce6864
4 changed files with 13 additions and 6 deletions

View File

@@ -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;
}