From a654a595b8642b62a18af16248fc0c44d9a8ea46 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Nov 2005 09:28:53 +0100 Subject: xml-import: fix escaping issues --- functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'functions.php') 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"; + } + } ?> -- cgit v1.2.3