X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=encode.php;fp=encode.php;h=c08f8afe0e1890f668d2f18639cb9ecd00599aa0;hb=c3133300f98840b9cedd56f6269274810160d6c2;hp=f93387bfbe976f53c14bd7e219f5014271f01fb3;hpb=f6ad488445b33f4eda0fca1fedcb230e03fd2721;p=wfpl.git diff --git a/encode.php b/encode.php index f93387b..c08f8af 100644 --- a/encode.php +++ b/encode.php @@ -99,7 +99,7 @@ function enc_url_path($str) { # # Example: function enc_checked($str) { - if($str == 'Yes') { + if($str && $str !== 'No' && $str !== 'False' && $str !== 'false') { return '" checked="checked'; } else { return '';