From: Evan Prodromou Date: Mon, 2 Jun 2008 19:10:39 +0000 (-0400) Subject: get content of element rather than raw element X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=53254d36ea30371b52d86208f9b6effae648f19d;p=quix0rs-gnu-social.git get content of element rather than raw element darcs-hash:20080602191039-84dde-d4a119b5c6a0bff9648ee6a4445e373933f2c199.gz --- 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); }