JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
fixed format_bool() to actually format as bool
[wfpl.git] / format.php
index de45928..f93d47f 100644 (file)
@@ -126,9 +126,9 @@ function format_unix($str) {
 
 function format_bool($str) {
        if($str && $str !== 'No' && $str !== 'False' && $str !== 'false') {
-               return 'Yes';
+               return 1;
        } else {
-               return 'No';
+               return 0;
        }
 }