fix PHP 8.0 error: trim expects string, array given

removed trim
This commit is contained in:
Ralf Becker 2021-11-05 09:07:58 +01:00
parent 201d1f9972
commit 4db49da7e5

View File

@ -594,7 +594,7 @@ class Ldap
{
// dont convert the (binary) jpegPhoto!
$ldapContact[$ldapFieldName] = $ldapFieldName == 'jpegphoto' ? $data[$egwFieldName] :
Api\Translation::convert(trim($data[$egwFieldName]),$this->charset,'utf-8');
Api\Translation::convert($data[$egwFieldName], $this->charset,'utf-8');
}
elseif($isUpdate && isset($data[$egwFieldName]))
{