🚑 fix(simpleplugin) Also use non-string attributes in DN

Like int for instance, useful for audit which has fdAuditId

issue #5995
parent 3b51520d
......@@ -1843,8 +1843,8 @@ class simplePlugin implements SimpleTab
/* Build DN with multiple attributes */
$usableAttributes = [];
foreach ($this->attributes as $attr) {
if (($attr != $attribute) && is_string($this->$attr) && ($this->$attr != '')) {
$usableAttributes[] = $attr;
if (($attr != $attribute) && is_scalar($this->$attr) && ($this->$attr != '')) {
$usableAttributes[] = (string)$attr;
}
}
for ($i = 1; $i < count($usableAttributes); $i++) {
......
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