get content of element rather than raw element

darcs-hash:20080602191039-84dde-d4a119b5c6a0bff9648ee6a4445e373933f2c199.gz
This commit is contained in:
Evan Prodromou 2008-06-02 15:10:39 -04:00
parent 740460e2ac
commit 53254d36ea

View File

@ -90,6 +90,10 @@ function omb_local_id($service) {
return NULL; return NULL;
} }
$els = $service->getElements('xrd:LocalID'); $els = $service->getElements('xrd:LocalID');
return ($els) ? $els[0] : NULL; if (!$els) {
return NULL;
}
$el = $els[0];
return $service->parser->content($el);
} }