From 402b1149186640008bde35007b229ef5179ed42c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 8 Nov 2005 14:26:36 +0000 Subject: [PATCH] quitened warning if there are no customfields defined yet --- admin/inc/class.customfields.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/inc/class.customfields.inc.php b/admin/inc/class.customfields.inc.php index 5ac4606ba0..0f020e3979 100644 --- a/admin/inc/class.customfields.inc.php +++ b/admin/inc/class.customfields.inc.php @@ -291,6 +291,6 @@ //merge old config_name in phpgw_config table $config_name = isset($config['customfields']) ? 'customfields' : 'custom_fields'; - return $config[$config_name]; + return is_array($config[$config_name]) ? $config[$config_name] : array(); } }