1027,7 → 1027,7 |
} |
|
$id = "oid:$dot_notation"; |
$title = isset($xoid->{'description'}) ? $xoid->{'description'}->__toString() : ''; |
$title = isset($xoid->{'description'}) ? html_entity_decode(strip_tags($xoid->{'description'}->__toString())) : ''; |
$info = isset($xoid->{'description'}) ? $xoid->{'information'}->__toString() : ''; |
|
// For ASN.1 definitions, "Description" is filled with the definition and "Information" is usually empty |
1060,8 → 1060,6 |
} |
} |
|
if (OIDplus::db()->transaction_supported()) OIDplus::db()->transaction_begin(); |
try { |
$obj_test = OIDplusObject::findFitting($id); |
if ($obj_test) { |
if ($replaceExistingOIDs) { |
1079,12 → 1077,6 |
// 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)); |
|
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; |