JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Merge branch 'master' of /home/jason/dev/git/wfpl
[wfpl.git] / encode.php
index f93387b..c08f8af 100644 (file)
@@ -99,7 +99,7 @@ function enc_url_path($str) {
 #
 # Example: <input type="checkbox" name="foo~foo.checked~">
 function enc_checked($str) {
-       if($str == 'Yes') {
+       if($str && $str !== 'No' && $str !== 'False' && $str !== 'false') {
                return '" checked="checked';
        } else {
                return '';