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

View File

@ -72,11 +72,13 @@ 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) {