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 ae7531ce8..fc873d0d5 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -86,6 +86,9 @@ function omb_service_uri($service) {
}
function omb_local_id($service) {
+ if (!$service) {
+ return NULL;
+ }
$els = $service->getElements('LocalID');
return ($els) ? $els[0] : NULL;
}