/trunk/plugins/viathinksoft/publicPages/100_whois/OIDplusPagePublicWhois.class.php |
---|
53,7 → 53,7 |
$firsts = array(); |
$first_ns = null; |
foreach (OIDplus::getEnabledObjectTypes() as $ot) { |
$res = OIDplus::db()->query("SELECT id FROM ###objects WHERE parent = ? ORDER BY id", array($ot::ns().':')); |
$res = OIDplus::db()->query("SELECT id FROM ###objects WHERE parent = ? ORDER BY ".OIDplus::db()->natOrder('id'), array($ot::ns().':')); |
if ($row = $res->fetch_array()) { |
if (is_null($first_ns)) $first_ns = $ot::ns(); |
$firsts[$ot::ns()] = $row['id']; |