1035,8 → 1035,8 |
} |
} |
|
OIDplus::db()->transaction_begin(); |
|
if (OIDplus::db()->transaction_supported()) OIDplus::db()->transaction_begin(); |
try { |
$obj_test = OIDplusObject::findFitting($id); |
if ($obj_test) { |
if ($replaceExistingOIDs) { |
1054,7 → 1054,12 |
// TODO: we can probably get the created and modified timestamp from oid-info.com XML |
OIDplus::db()->query("insert into ###objects (id, parent, title, description, confidential, ra_email) values (?, ?, ?, ?, ?, ?)", array($id, $parent, $title, $info, false, $ra)); |
|
OIDplus::db()->transaction_commit(); |
if (OIDplus::db()->transaction_supported()) OIDplus::db()->transaction_commit(); |
} catch (\Exception $e) { |
if (OIDplus::db()->transaction_supported()) OIDplus::db()->transaction_rollback(); |
throw new $e; |
} |
|
OIDplusObject::resetObjectInformationCache(); |
|
$this_oid_has_warnings = false; |