mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
Avoid warning about $field['type2'] already array by checking before exploding
This commit is contained in:
parent
8a3cda964e
commit
11e01aaa41
@ -304,7 +304,7 @@ class infolog_bo
|
||||
|
||||
foreach($this->customfields as $field)
|
||||
{
|
||||
if ((!$type || empty($field['type2']) || in_array($type,explode(',',$field['type2']))) &&
|
||||
if ((!$type || empty($field['type2']) || in_array($type,is_array($field['type2']) ? $field['type2'] : explode(',',$field['type2']))) &&
|
||||
(!$links || in_array($field['type'],$link_types)))
|
||||
{
|
||||
return True;
|
||||
|
Loading…
Reference in New Issue
Block a user