restructure filters on services

darcs-hash:20080603111750-84dde-5b3eb37cc05ceaec991951338d55d38a2e0a5f2d.gz
This commit is contained in:
Evan Prodromou 2008-06-03 07:17:50 -04:00
parent a14833284b
commit efbae69aae
1 changed files with 6 additions and 4 deletions

View File

@ -72,11 +72,13 @@ function omb_service_filter($type) {
}
function omb_match_service($service, $type) {
if ($service && $service->matchTypes(array($type))) {
return TRUE;
} else {
return FALSE;
if ($service) {
$types = $service->matchTypes(array($type));
if (in_array($type, $types)) {
return TRUE;
}
}
return FALSE;
}
function omb_service_uri($service) {