fix error when no attribute in the assertion
This commit is contained in:
parent
e62aeea51c
commit
0d325902f3
|
@ -51,6 +51,7 @@ class LassoSPKitHelper {
|
|||
and copy them into array $attributes. */
|
||||
static function assertionExtractAttributes($assertion) {
|
||||
$attributes = array();
|
||||
if ($assertion->attributeStatement && array_length($assertion->attributeStatement)) {
|
||||
foreach ($assertion->attributeStatement[0]->attribute as $attribute) {
|
||||
if ($attribute->name == LASSO_SAML2_ATTRIBUTE_NAME_EPR) {
|
||||
continue;
|
||||
|
@ -61,6 +62,7 @@ class LassoSPKitHelper {
|
|||
}
|
||||
$attributes[$attribute->name] = $arr;
|
||||
}
|
||||
}
|
||||
return $attributes;
|
||||
}
|
||||
/** Return the NameID found in profile->nameIdentifier. If throw is TRUE
|
||||
|
|
Reference in New Issue