From efbae69aaed3376043bafd3bd99f83ec548ff130 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 3 Jun 2008 07:17:50 -0400 Subject: [PATCH] restructure filters on services darcs-hash:20080603111750-84dde-5b3eb37cc05ceaec991951338d55d38a2e0a5f2d.gz --- lib/omb.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/omb.php b/lib/omb.php index 481aa6c024..c402e08764 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) {