handle error in the binding
This commit is contained in:
parent
4fe204832f
commit
cb2471d7b1
|
@ -200,7 +200,9 @@ class LassoSPKitHelper {
|
|||
static function getNameIDs(LassoIdentity $identity) {
|
||||
$nameIDs = array();
|
||||
foreach ($identity->federations as $rid => $federation) {
|
||||
$nameIDs[$rid] = $federation->remoteNameIdentifier->content;
|
||||
if ($federation) {
|
||||
$nameIDs[$rid] = $federation->remoteNameIdentifier->content;
|
||||
}
|
||||
}
|
||||
return $nameIDs;
|
||||
}
|
||||
|
|
Reference in New Issue