From 2dc0fca331eae0f1bc9e84633dd1d701b66a0164 Mon Sep 17 00:00:00 2001 From: Vincent Rioux <vrioux@ctech.ca> Date: Thu, 18 Aug 2016 10:49:59 -0400 Subject: [PATCH] Oops - foreach (array as element) --- modules/consent/lib/Auth/Process/Consent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/consent/lib/Auth/Process/Consent.php b/modules/consent/lib/Auth/Process/Consent.php index bfad8176a..ee9837861 100644 --- a/modules/consent/lib/Auth/Process/Consent.php +++ b/modules/consent/lib/Auth/Process/Consent.php @@ -160,7 +160,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt return true; } else { // Search in multidimensional arrays - foreach ($optionToTest in $option) { + foreach ($option as $optionToTest) { if (is_array($optionToTest)) { if (array_key_exists('type', $optionToTest) { if ($optionToTest['type'] === 'regex') { -- GitLab