summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/omb.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/omb.php b/lib/omb.php
index ead347860..b7731dc3a 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -90,6 +90,10 @@ function omb_local_id($service) {
return NULL;
}
$els = $service->getElements('xrd:LocalID');
- return ($els) ? $els[0] : NULL;
+ if (!$els) {
+ return NULL;
+ }
+ $el = $els[0];
+ return $service->parser->content($el);
}