summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorChristophe.Boulain <>2009-04-29 06:53:37 +0000
committerChristophe.Boulain <>2009-04-29 06:53:37 +0000
commitc5b32bfae9b60b59e81276abd8af2b451b92080a (patch)
treebd265aade05e60f958988049e0cab380393104b2 /framework
parent28a78f7306d1952a5efb4b8b8a6432f41bf5f4cf (diff)
THtmlArea boolean options were not properly encoded in change r2619
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/UI/WebControls/THtmlArea.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/THtmlArea.php b/framework/Web/UI/WebControls/THtmlArea.php
index ce789f38..8d55c074 100644
--- a/framework/Web/UI/WebControls/THtmlArea.php
+++ b/framework/Web/UI/WebControls/THtmlArea.php
@@ -438,7 +438,10 @@ class THtmlArea extends TTextBox
if(count($option) == 2)
{
$value=trim(preg_replace('/\'|"/','', $option[1]));
- if (($s=strtolower($value))==='false' || $s==='true') $value=(boolean)$s;
+ if (($s=strtolower($value))==='false')
+ $value=false;
+ elseif ($s==='true')
+ $value=true;
$options[trim($option[0])] = $value;
}
}