summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index c0368e22a..99f71fd51 100644
--- a/functions.php
+++ b/functions.php
@@ -795,4 +795,12 @@
return date("Y/m/d");
}
}
+
+ function sql_bool_to_string($s) {
+ if ($s == "t" || $s == "1") {
+ return "true";
+ } else {
+ return "false";
+ }
+ }
?>