Skip to content
Snippets Groups Projects
Commit de2eca38 authored by Tim van Dijen's avatar Tim van Dijen
Browse files

Fix type confusion

parent 5b0979a8
No related branches found
No related tags found
No related merge requests found
......@@ -82,10 +82,10 @@ if ($prevAuth !== null && $prevAuth['id'] === $response->getId() && $prevAuth['i
throw new \SimpleSAML\Error\Exception('Duplicate assertion received.');
}
$idpMetadata = [];
$idpMetadata = null;
$state = null;
$stateId = $response->getInResponseTo();
if (!empty($stateId)) {
// this should be a response to a request we sent earlier
try {
......@@ -131,7 +131,7 @@ if ($state) {
SimpleSAML\Logger::debug('Received SAML2 Response from '.var_export($issuer, true).'.');
if (empty($idpMetadata)) {
if (is_null($idpMetadata)) {
$idpMetadata = $source->getIdPmetadata($issuer);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment