Permalink
Browse files

fixes #19 now checking the box if $value is any non-false value... th…

…is _should_ be fine
  • Loading branch information...
1 parent 25e9d3b commit 392253cec1dbe325cf46ac5c17c89718b8396e9a @Zeelot committed Jul 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/yuriko/yform/field/checkbox.php
@@ -24,7 +24,7 @@ public function __construct($name)
*/
public function set_value($value)
{
- if ($value !== NULL)
+ if ($value)
{
$this->set_attribute('checked', 'checked');
}

0 comments on commit 392253c

Please sign in to comment.