diff options
Diffstat (limited to 'framework')
-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;
}
}
|