Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 971 → Rev 972

/trunk/plugins/frdl/publicPages/1276945_rdap/OIDplusRDAP.class.php
64,11 → 64,9
$out = [];
 
$obj = OIDplusObject::findFitting($query);
if (!$obj) $obj = OIDplusObject::parse($query);
if ($obj) $query = $obj->nodeId();
 
if(!$obj){
// If object was not found, try if it is an alternative identifier of another object
if(!$obj){
$alts = OIDplusPagePublicObjects::getAlternativesForQuery($query);
foreach ($alts as $alt) {
if ($obj = OIDplusObject::findFitting($alt)) {
76,7 → 74,6
break;
}
}
}
 
// Still nothing found?
if(!$obj){
86,6 → 83,9
}
return $this->rdap_out($out);
}
} else {
$query = $obj->nodeId();
}
 
$res = OIDplus::db()->query("select * from ###objects where id = ?", [$query]);
$data = $res ? $res->fetch_object() : null;