Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/2769'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Attribute.php
Expand Up @@ -80,14 +80,14 @@ public static function getAttribute(array $data, $attribName, $index = null)
}
$retArray = array();
foreach ($data[$attribName] as $v) {
$retArray[] = self::valueFromLDAP($v);
$retArray[] = self::valueFromLdap($v);
}
return $retArray;
} elseif (is_int($index)) {
if (!isset($data[$attribName])) {
return null;
} elseif ($index >= 0 && $index < count($data[$attribName])) {
return self::valueFromLDAP($data[$attribName][$index]);
return self::valueFromLdap($data[$attribName][$index]);
} else {
return null;
}
Expand Down Expand Up @@ -116,7 +116,7 @@ public static function attributeHasValue(array &$data, $attribName, $value)
}

foreach ($value as $v) {
$v = self::valueToLDAP($v);
$v = self::valueToLdap($v);
if (!in_array($v, $data[$attribName], true)) {
return false;
}
Expand Down Expand Up @@ -162,7 +162,7 @@ public static function removeFromAttribute(array &$data, $attribName, $value)

$valArray = array();
foreach ($value as $v) {
$v = self::valueToLDAP($v);
$v = self::valueToLdap($v);
if ($v !== null) {
$valArray[] = $v;
}
Expand Down

0 comments on commit 67864ef

Please sign in to comment.