summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/omb.php10
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) {