Commit d26a71a6 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(simpleplugin) Fix starting point of loop

issue #5817
parent 7ee453c1
......@@ -1820,7 +1820,7 @@ class simplePlugin
$usableAttributes[] = $attr;
}
}
for ($i = 2; $i < count($usableAttributes); $i++) {
for ($i = 1; $i < count($usableAttributes); $i++) {
foreach (new Combinations($usableAttributes, $i) as $attrs) {
$dn = $attribute.'='.ldap_escape_dn($this->$attribute);
foreach ($attrs as $attr) {
......
  • SonarQube analysis reported 1 issue

    • 🚫 1 critical

    Note: The following issues were found on lines that were not modified in the commit. Because these issues can't be reported as line comments, they are summarized here:

    1. 🚫 Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed. 📘
  • mentioned in commit 855c6d20

    Toggle commit list
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment