Commit b320a95e authored by haemmer's avatar haemmer
Browse files

Corrected element name that is used to gather the service name

parent ab897790
......@@ -530,10 +530,10 @@ function getAttributeConsumingServiceNames($RoleDescriptorNode){
$Entity = Array();
$ServiceDescriptions = $RoleDescriptorNode->getElementsByTagNameNS('urn:oasis:names:tc:SAML:2.0:metadata', 'ServiceDescription' );
foreach ($ServiceDescriptions as $ServiceDescription){
$lang = $ServiceDescription->getAttributeNodeNS('', 'lang')->nodeValue;
$Entity[$lang] = $ServiceDescription->nodeValue;
$ServiceNames = $RoleDescriptorNode->getElementsByTagNameNS('urn:oasis:names:tc:SAML:2.0:metadata', 'ServiceName' );
foreach ($ServiceNames as $ServiceName){
$lang = $ServiceName->getAttributeNodeNS('', 'lang')->nodeValue;
$Entity[$lang] = $ServiceName->nodeValue;
return $Entity;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment