summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-02 14:13:16 +0300
committerAndrew Dolgov <[email protected]>2017-12-02 14:13:16 +0300
commitef83c69404278876edb61a710e42697dcc43644f (patch)
tree2939862d4b26bdfd52e70c693db4d99e4c37eb91 /include
parentda9ea57d1c1602899111df615639d9f013f7226f (diff)
more boolean fixes
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 887de1c81..6637bd5d1 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -941,7 +941,7 @@
}
function sql_bool_to_bool($s) {
- return $s; //no-op for PDO
+ return $s && ($s != "f" && $s != "false"); //no-op for PDO, backwards compat for legacy layer
}
function bool_to_sql_bool($s) {