From 9fd4c1833c971f2ecbbf17944502c82aa0a74f3b Mon Sep 17 00:00:00 2001
From: Pavel Vyskocil <pavel.vyskocil@cesnet.cz>
Date: Tue, 15 Mar 2022 16:37:30 +0100
Subject: [PATCH] fix: fix bad comparation for array item

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

diff --git a/lib/AttributeCheck.php b/lib/AttributeCheck.php
index c7649a9..13d3032 100644
--- a/lib/AttributeCheck.php
+++ b/lib/AttributeCheck.php
@@ -69,7 +69,7 @@ class AttributeCheck
                     }
                 } elseif (is_array($item)) {
                     foreach ($item as $listItem) {
-                        if (! array_key_exists($item, $attributes)) {
+                        if (! array_key_exists($listItem, $attributes)) {
                             return self::NOT_OK;
                         }
                     }
-- 
GitLab