From 0c82e0715229c771f36a3db34b9e4a995981e4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Fri, 4 Nov 2005 12:11:50 +0000 Subject: [PATCH] fixed bug reported by lutz falkenberg killed warnig if no customfields are present --- etemplate/inc/class.customfields_widget.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.customfields_widget.inc.php b/etemplate/inc/class.customfields_widget.inc.php index 1de42d1618..d70de83629 100644 --- a/etemplate/inc/class.customfields_widget.inc.php +++ b/etemplate/inc/class.customfields_widget.inc.php @@ -56,7 +56,7 @@ $this->customfields = $value; } - if(empty($this->customfields)) + if(!is_array($this->customfields)) { $cell['type'] = 'label'; return True;