diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-02 15:10:39 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-02 15:10:39 -0400 |
commit | 53254d36ea30371b52d86208f9b6effae648f19d (patch) | |
tree | e754cd61b768bca5d77a71d0d99cd077389764f9 | |
parent | 740460e2ac8b1091eec9e4490c2b98f81a40b0de (diff) |
get content of element rather than raw element
darcs-hash:20080602191039-84dde-d4a119b5c6a0bff9648ee6a4445e373933f2c199.gz
-rw-r--r-- | lib/omb.php | 6 |
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); } |