summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI')
-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;
}
}