From 0002e598f8367d6156e9bcd71af6b125902f5138 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 2 Dec 2017 22:39:34 +0300 Subject: [PATCH] sql_bool_to_bool: backwards compat fix --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 459762d5..21cf3fef 100644 --- a/include/functions.php +++ b/include/functions.php @@ -941,7 +941,7 @@ } function sql_bool_to_bool($s) { - return $s && ($s != "f" && $s != "false"); //no-op for PDO, backwards compat for legacy layer + return $s && ($s !== "f" && $s !== "false"); //no-op for PDO, backwards compat for legacy layer } function bool_to_sql_bool($s) {