From 3a1412d8fe8ace1ef557f9f2bc12398b2db305f7 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 15 May 2010 13:44:42 +0000 Subject: [PATCH] "fixed warning: explode expects 2. parameter to be string, array given" --- etemplate/inc/class.historylog_widget.inc.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/etemplate/inc/class.historylog_widget.inc.php b/etemplate/inc/class.historylog_widget.inc.php index b503415bec..aa27a1b604 100644 --- a/etemplate/inc/class.historylog_widget.inc.php +++ b/etemplate/inc/class.historylog_widget.inc.php @@ -85,13 +85,15 @@ class historylog_widget foreach($type as $n => $t) { $opt = ''; - if(is_array($t)) { + if(is_array($t)) + { $sel_options = $t; - } - list($t,$opt) = explode(':',$t); - if(is_array($sel_options)) { $t = 'select'; } + else + { + list($t,$opt) = explode(':',$t); + } $child = etemplate::empty_cell($t,$cell['name']."[$n]",array('readonly' => true,'no_lang' => true,'size' => $opt)); $child['sel_options'] = $sel_options; etemplate::add_child($cell,$child);