restructure filters on services
darcs-hash:20080603111750-84dde-5b3eb37cc05ceaec991951338d55d38a2e0a5f2d.gz
This commit is contained in:
parent
a14833284b
commit
efbae69aae
@ -72,12 +72,14 @@ function omb_service_filter($type) {
|
||||
}
|
||||
|
||||
function omb_match_service($service, $type) {
|
||||
if ($service && $service->matchTypes(array($type))) {
|
||||
if ($service) {
|
||||
$types = $service->matchTypes(array($type));
|
||||
if (in_array($type, $types)) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
function omb_service_uri($service) {
|
||||
if (!$service) {
|
||||
|
Loading…
Reference in New Issue
Block a user