From 11e01aaa414e1fdb651604086a5f198f7fc72730 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 6 Mar 2014 21:59:48 +0000 Subject: [PATCH] Avoid warning about $field['type2'] already array by checking before exploding --- infolog/inc/class.infolog_bo.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;