From 53254d36ea30371b52d86208f9b6effae648f19d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 2 Jun 2008 15:10:39 -0400 Subject: [PATCH] get content of element rather than raw element darcs-hash:20080602191039-84dde-d4a119b5c6a0bff9648ee6a4445e373933f2c199.gz --- lib/omb.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/omb.php b/lib/omb.php index ead347860d..b7731dc3ae 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); } -- 2.39.5