Skip to content

Commit 1535bad

Browse files
committed
Fix from empty attributes
1 parent 2982550 commit 1535bad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Auth/Process/AttributeAddFromLDAP.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function process(array &$request): void
106106
foreach ($attributes as $attr => $val) {
107107
$arrSearch[] = '%' . $attr . '%';
108108

109-
if (strlen($val[0]) > 0) {
109+
if (is_array($val) && count($val) > 0 && strlen($val[0]) > 0) {
110110
$arrReplace[] = Ldap::escapeFilterValue($val[0]);
111111
} else {
112112
$arrReplace[] = '';

0 commit comments

Comments
 (0)