From 76fc7a2d9c7e62c9d9c889ef08db017efb835902 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 6 Dec 2017 00:12:28 +0300 Subject: [PATCH] bool_to_sql_bool: for some reason PDO really likes integers for boolean columns incidentally this fixes OPML filter import --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 02d0416f..e1e63c2a 100644 --- a/include/functions.php +++ b/include/functions.php @@ -956,7 +956,7 @@ } function bool_to_sql_bool($s) { - return (bool)$s; //no-op for PDO + return $s ? 1 : 0; } // Session caching removed due to causing wrong redirects to upgrade