add more debugging
darcs-hash:20080618201123-84dde-3c6a131fafc0ba8922293c608173a6d7407ce8d0.gz
This commit is contained in:
parent
2aa34a9bf0
commit
ed54a46fe9
@ -51,12 +51,16 @@ function oid_link_user($id, $canonical, $display) {
|
|||||||
$oid->display = $display;
|
$oid->display = $display;
|
||||||
$oid->created = DB_DataObject_Cast::dateTime();
|
$oid->created = DB_DataObject_Cast::dateTime();
|
||||||
|
|
||||||
|
common_debug('oid = '.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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
common_debug('oid = '.print_r($oid, TRUE), __FILE__);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user