From 2d66c62131be82e93a5fc40ae3b69f850196ec1a Mon Sep 17 00:00:00 2001 From: "Christophe.Boulain" <> Date: Mon, 16 Mar 2009 14:20:27 +0000 Subject: Fixed Issue#126 --- framework/Web/UI/WebControls/THtmlArea.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php index 5d65c8b2..7e8bc370 100644 --- a/framework/Web/UI/WebControls/THtmlArea.php +++ b/framework/Web/UI/WebControls/THtmlArea.php @@ -436,7 +436,11 @@ class THtmlArea extends TTextBox $option = explode(":",$bits,2); if(count($option) == 2) - $options[trim($option[0])] = trim(preg_replace('/\'|"/','', $option[1])); + { + $value=trim(preg_replace('/\'|"/','', $option[1])); + if (($s=strtolower($value))==='false' || $s==='true') $value=(boolean)$s; + $options[trim($option[0])] = $value; + } } return $options; } -- cgit v1.2.3