mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fix PHP 8.0 error: trim() expects parameter 1 to be string, array given
This commit is contained in:
parent
c15cb2de41
commit
1500ab69f0
@ -971,7 +971,8 @@ class addressbook_vcal extends addressbook_bo
|
||||
{
|
||||
if (!empty($fieldName))
|
||||
{
|
||||
$value = trim($vcardValues[$vcardKey]['values'][$fieldKey]);
|
||||
$value = $vcardValues[$vcardKey]['values'][$fieldKey];
|
||||
if (is_string($value)) $value = trim($value);
|
||||
|
||||
if ($pref_tel && (($vcardKey == $pref_tel) ||
|
||||
($vcardValues[$vcardKey]['name'] == 'TEL') &&
|
||||
|
Loading…
Reference in New Issue
Block a user