diff options
author | Christophe.Boulain <> | 2009-04-29 06:53:37 +0000 |
---|---|---|
committer | Christophe.Boulain <> | 2009-04-29 06:53:37 +0000 |
commit | c5b32bfae9b60b59e81276abd8af2b451b92080a (patch) | |
tree | bd265aade05e60f958988049e0cab380393104b2 /framework/Web/UI/WebControls/THtmlArea.php | |
parent | 28a78f7306d1952a5efb4b8b8a6432f41bf5f4cf (diff) |
THtmlArea boolean options were not properly encoded in change r2619
Diffstat (limited to 'framework/Web/UI/WebControls/THtmlArea.php')
-rw-r--r-- | framework/Web/UI/WebControls/THtmlArea.php | 5 |
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;
}
}
|