mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
fix PHP Warning: Invalid argument supplied for foreach()
This commit is contained in:
parent
67aa825d33
commit
ac9496343f
@ -1505,6 +1505,9 @@ class Contacts extends Contacts\Storage
|
||||
$type = null;
|
||||
}
|
||||
$title = $this->fileas($contact,$type);
|
||||
|
||||
if (!empty($this->prefs['link_title_cf']))
|
||||
{
|
||||
$field_list = is_string($this->prefs['link_title_cf']) ? explode(',', $this->prefs['link_title_cf']) : $this->prefs['link_title_cf'];
|
||||
foreach ($field_list as $field)
|
||||
{
|
||||
@ -1513,6 +1516,7 @@ class Contacts extends Contacts\Storage
|
||||
$title .= ', ' . $contact['#'.$field];
|
||||
}
|
||||
}
|
||||
}
|
||||
return $title ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user