Skip to content
Snippets Groups Projects
Commit 2dc0fca3 authored by Vincent Rioux's avatar Vincent Rioux Committed by GitHub
Browse files

Oops - foreach (array as element)

parent 123f1e3e
No related branches found
No related tags found
No related merge requests found
...@@ -160,7 +160,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt ...@@ -160,7 +160,7 @@ class sspmod_consent_Auth_Process_Consent extends SimpleSAML_Auth_ProcessingFilt
return true; return true;
} else { } else {
// Search in multidimensional arrays // Search in multidimensional arrays
foreach ($optionToTest in $option) { foreach ($option as $optionToTest) {
if (is_array($optionToTest)) { if (is_array($optionToTest)) {
if (array_key_exists('type', $optionToTest) { if (array_key_exists('type', $optionToTest) {
if ($optionToTest['type'] === 'regex') { if ($optionToTest['type'] === 'regex') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment