X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=format.php;h=a658dbba05f02dea7069388dcfb49711dde75db2;hb=21c47e88810e97fe5b727c9c2689f64533bf6452;hp=1bac60910ffdebe9cd4fa37439365549a9bf6e77;hpb=848c8a4d215f9cce1db0a7d37e733b5959b8210f;p=wfpl.git diff --git a/format.php b/format.php index 1bac609..a658dbb 100644 --- a/format.php +++ b/format.php @@ -52,10 +52,10 @@ function format_unix($str) { } function format_yesno($str) { - if($str) { - return "Yes"; + if($str && $str != 'No') { + return 'Yes'; } else { - return "No"; + return 'No'; } }