summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TCheckBox.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TCheckBox.php')
-rw-r--r--framework/Web/UI/WebControls/TCheckBox.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TCheckBox.php b/framework/Web/UI/WebControls/TCheckBox.php
index f6713cd4..4cabaa75 100644
--- a/framework/Web/UI/WebControls/TCheckBox.php
+++ b/framework/Web/UI/WebControls/TCheckBox.php
@@ -254,7 +254,8 @@ class TCheckBox extends TWebControl implements IPostBackDataHandler, IValidatabl
$attributes=$this->getAttributes();
$value=$attributes->remove('value');
// onclick js should only be added to input tag
- $onclick=$attributes->remove('onclick');
+ if(($onclick=$attributes->remove('onclick'))===null)
+ $onclick='';
if($attributes->getCount())
{
$writer->addAttributes($attributes);