Subversion Repositories oidplus

Rev

Rev 1116 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1116 Rev 1130
Line 34... Line 34...
34
	if ($oid == '') continue;
34
	if ($oid == '') continue;
35
 
35
 
36
	if (strpos($oid, '1.3.6.1.4.1.37476.30.9.') !== 0) check_oid($oid);
36
	if (strpos($oid, '1.3.6.1.4.1.37476.30.9.') !== 0) check_oid($oid);
37
}
37
}
38
 
38
 
-
 
39
/**
-
 
40
 * @param string $oid
-
 
41
 * @return void
-
 
42
 */
39
function check_oid($oid) {
43
function check_oid(string $oid) {
40
 
44
 
41
	$res = OIDplus::db()->query("select * from ###objects where id = ?", array("oid:$oid"));
45
	$res = OIDplus::db()->query("select * from ###objects where id = ?", array("oid:$oid"));
42
	$ok = $res->num_rows() > 0;
46
	$ok = $res->num_rows() > 0;
43
 
47
 
44
	if (!$ok) {
48
	if (!$ok) {