diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-03 07:17:50 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-03 07:17:50 -0400 |
commit | efbae69aaed3376043bafd3bd99f83ec548ff130 (patch) | |
tree | 8331331157969648d2170730aebf747c4170e7f4 | |
parent | a14833284b3293d1431e1712211d0743112ce8c6 (diff) |
restructure filters on services
darcs-hash:20080603111750-84dde-5b3eb37cc05ceaec991951338d55d38a2e0a5f2d.gz
-rw-r--r-- | lib/omb.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/omb.php b/lib/omb.php index 481aa6c02..c402e0876 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -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) { |