]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
get content of element rather than raw element
authorEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 19:10:39 +0000 (15:10 -0400)
committerEvan Prodromou <evan@prodromou.name>
Mon, 2 Jun 2008 19:10:39 +0000 (15:10 -0400)
darcs-hash:20080602191039-84dde-d4a119b5c6a0bff9648ee6a4445e373933f2c199.gz

lib/omb.php

index ead347860d6b80b49d698b4e59505270bbcbe6c9..b7731dc3ae9a110110ff2f7888be9e892f9e2298 100644 (file)
@@ -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);
 }