Subversion Repositories oidplus

Rev

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

Rev 557 Rev 1130
Line 30... Line 30...
30
preg_match_all('@oid=\.(.+)">@ismU', $cont, $m);
30
preg_match_all('@oid=\.(.+)">@ismU', $cont, $m);
31
foreach ($m[1] as $oid) {
31
foreach ($m[1] as $oid) {
32
	check_oid($oid);
32
	check_oid($oid);
33
}
33
}
34
 
34
 
-
 
35
/**
-
 
36
 * @param string $oid
-
 
37
 * @return void
-
 
38
 */
35
function check_oid($oid) {
39
function check_oid(string $oid) {
36
 
40
 
37
	$res = OIDplus::db()->query("select * from ###objects where id = ?", array("oid:$oid"));
41
	$res = OIDplus::db()->query("select * from ###objects where id = ?", array("oid:$oid"));
38
	$ok = $res->num_rows() > 0;
42
	$ok = $res->num_rows() > 0;
39
 
43
 
40
	if (!$ok) {
44
	if (!$ok) {