Skip to content

Commit 6b6a618

Browse files
Check for possibly undefined variable
Check for possibly undefined variable
1 parent af4126b commit 6b6a618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Saml2/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ public function isValid($requestId = null)
236236
$scnData = $subjectConfirmationDataNodes->item(0);
237237
if ($scnData->hasAttribute('InResponseTo')) {
238238
$inResponseTo = $scnData->getAttribute('InResponseTo');
239-
if ($responseInResponseTo != $inResponseTo) {
239+
if (isset($responseInResponseTo) && $responseInResponseTo != $inResponseTo) {
240240
continue;
241241
}
242242
}

0 commit comments

Comments
 (0)