diff --git a/infolog/inc/class.infolog_bo.inc.php b/infolog/inc/class.infolog_bo.inc.php index 5d81eec47c..e34277983e 100644 --- a/infolog/inc/class.infolog_bo.inc.php +++ b/infolog/inc/class.infolog_bo.inc.php @@ -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;