From 44ae90b8d3e295f3ab628fe5ec79e2e4f752ff88 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 11 Jun 2014 17:33:19 +0000 Subject: [PATCH] Avoid warning from explode() if type2 is already an array --- phpgwapi/inc/class.config.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.config.inc.php b/phpgwapi/inc/class.config.inc.php index 12b33e7e74..2286429262 100755 --- a/phpgwapi/inc/class.config.inc.php +++ b/phpgwapi/inc/class.config.inc.php @@ -236,7 +236,7 @@ class config foreach($cfs as $name => $field) { if (!$all_private_too && $field['private'] && !self::_check_private_cf($field['private']) || - $only_type2 && $field['type2'] && !in_array($only_type2, explode(',', $field['type2']))) + $only_type2 && $field['type2'] && !in_array($only_type2, is_array($field['type2']) ? $field['type2'] : explode(',', $field['type2']))) { unset($cfs[$name]); }