X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=format.php;h=13d79ce53942b8a80d2b9d347bd42c5105913f5d;hb=e648f21f696e973b58d135cf38f786f1ebae1327;hp=a6b0582fc2680a1b90c5a171efbb167a466f50be;hpb=b714d3f571fc78989e69c7272c5812eb97479cf0;p=wfpl.git diff --git a/format.php b/format.php index a6b0582..13d79ce 100644 --- a/format.php +++ b/format.php @@ -178,7 +178,7 @@ function format_unix($str) { } function format_bool($str) { - if($str && $str !== 'No' && $str !== 'False' && $str !== 'false') { + if($str && $str !== 'No' && $str !== 'False' && $str !== 'false' && $str !== 'no' && $str !== 'N' && $str !== 'n') { return 1; } else { return 0; @@ -186,7 +186,7 @@ function format_bool($str) { } function format_yesno($str) { - if($str && $str !== 'No' && $str !== 'False' && $str !== 'false') { + if($str && $str !== 'No' && $str !== 'False' && $str !== 'false' && $str !== 'no' && $str !== 'N' && $str !== 'n') { return 'Yes'; } else { return 'No';