From 851c636cbfb8795e0a0f9196b3ab48d6061621c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?=
 <melanger@users.noreply.github.com>
Date: Wed, 22 Jun 2022 10:03:11 +0200
Subject: [PATCH] fix: prevent undefined offset warning

---
 lib/AuthnContextHelper.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/AuthnContextHelper.php b/lib/AuthnContextHelper.php
index 5af97fe..5fabf83 100644
--- a/lib/AuthnContextHelper.php
+++ b/lib/AuthnContextHelper.php
@@ -66,7 +66,7 @@ class AuthnContextHelper
             !self::testComparison(
                 $usersCapabilities,
                 $supportedRequestedContexts,
-                $state['saml:RequestedAuthnContext']['Comparison'],
+                $state['saml:RequestedAuthnContext']['Comparison'] ?? Constants::COMPARISON_EXACT,
                 $upstreamContext,
                 $mfaEnforced
             )
-- 
GitLab