From e54507780bbb25537735139fdf65637fbaa39542 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 31 Mar 2007 06:24:07 +0000 Subject: Fixed http://www.pradosoft.com/forum/index.php/topic,7089.0/topicseen.html --- framework/Web/UI/WebControls/TRadioButton.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/WebControls/TRadioButton.php b/framework/Web/UI/WebControls/TRadioButton.php index bab03f88..727b3b3a 100644 --- a/framework/Web/UI/WebControls/TRadioButton.php +++ b/framework/Web/UI/WebControls/TRadioButton.php @@ -272,7 +272,7 @@ class TRadioButton extends TCheckBox $writer->addAttribute('type','radio'); $writer->addAttribute('name',$this->getUniqueGroupName()); $writer->addAttribute('value',$this->getValueAttribute()); - if($onclick!=='') + if(!empty($onclick)) $writer->addAttribute('onclick',$onclick); if($this->getChecked()) $writer->addAttribute('checked','checked'); -- cgit v1.2.3