diff options
author | Andrew Dolgov <[email protected]> | 2005-11-30 09:28:53 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-30 09:28:53 +0100 |
commit | a654a595b8642b62a18af16248fc0c44d9a8ea46 (patch) | |
tree | 0a3e5e7742d1dec6c4b80028cda2a07be006a332 /functions.php | |
parent | df08c5bb99c664e756cb6a2e1f3062d1421a2c47 (diff) |
xml-import: fix escaping issues
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 8 |
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"; + } + } ?> |