summaryrefslogtreecommitdiff
path: root/lib/omb.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/omb.php')
-rw-r--r--lib/omb.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/omb.php b/lib/omb.php
index 5f31de42c..ae7531ce8 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -75,6 +75,9 @@ function omb_match_service($service, $type) {
}
function omb_service_uri($service) {
+ if (!$service) {
+ return NULL;
+ }
$uris = $service->getURIs();
if (!$uris) {
return NULL;