From: Evan Prodromou Date: Tue, 3 Jun 2008 11:17:50 +0000 (-0400) Subject: restructure filters on services X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=efbae69aaed3376043bafd3bd99f83ec548ff130;p=quix0rs-gnu-social.git restructure filters on services darcs-hash:20080603111750-84dde-5b3eb37cc05ceaec991951338d55d38a2e0a5f2d.gz --- 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) {