We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 333493a commit cd5bd5eCopy full SHA for cd5bd5e
1 file changed
lib/Auth/Process/AttributeAddFromLDAP.php
@@ -95,7 +95,7 @@ public function process(array &$state): void
95
foreach ($attributes as $attr => $val) {
96
$arrSearch[] = '%' . $attr . '%';
97
98
- if (strlen($val[0]) > 0) {
+ if (is_array($val) && count($val) > 0 && strlen($val[0]) > 0) {
99
$arrReplace[] = $this->connector->escapeFilterValue($val[0], true);
100
} else {
101
$arrReplace[] = '';
0 commit comments