From 6a0d93f893e84b841e17d9565919dac970b0812d Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tim.dijen@minbzk.nl>
Date: Fri, 27 Aug 2021 16:38:53 +0200
Subject: [PATCH] Ignore error if there's no scope

---
 modules/saml/lib/Auth/Process/FilterScopes.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/saml/lib/Auth/Process/FilterScopes.php b/modules/saml/lib/Auth/Process/FilterScopes.php
index aea28ae3e..b0fb75237 100644
--- a/modules/saml/lib/Auth/Process/FilterScopes.php
+++ b/modules/saml/lib/Auth/Process/FilterScopes.php
@@ -66,7 +66,7 @@ class FilterScopes extends ProcessingFilter
             $values = $request['Attributes'][$attribute];
             $newValues = [];
             foreach ($values as $value) {
-                list(, $scope) = explode('@', $value, 2);
+                @list(, $scope) = explode('@', $value, 2);
                 if ($scope === null) {
                     $newValues[] = $value;
                     continue; // there's no scope
-- 
GitLab