From 809b5f3dac68774c1e213c8405e7cf250cc66a55 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 17 Mar 2012 14:18:30 +0000 Subject: [PATCH] fixing the fix ..., good that new etemplate2 always uses csv_explode --- etemplate/inc/class.etemplate.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 86c6959782..3ab5ff21c5 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -1274,7 +1274,7 @@ class etemplate extends boetemplate case 'text': // size: [length][,maxLength[,preg[,html5type]]] $cell_opts = $c = self::csv_split($cell_options); // allows to enclose preg in quote to allow comma // fix preg, in case it contains a comma (html5type is only letters and always last option!) - if (count($cell_opts) > 3) + if (count($cell_opts) > 3 && ($cell_opts2 = explode(',',$cell_options)) && $cell_opts2[2][0] != '"') { $html5type = array_pop($cell_opts); $cell_opts = explode(',',$cell_options,3);