From ef83c69404278876edb61a710e42697dcc43644f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 2 Dec 2017 14:13:16 +0300 Subject: [PATCH] more boolean fixes --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 887de1c8..6637bd5d 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) { -- 2.39.5