From: Andrew Dolgov Date: Tue, 5 Dec 2017 21:12:28 +0000 (+0300) Subject: bool_to_sql_bool: for some reason PDO really likes integers for boolean columns X-Git-Tag: 18.8~126 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=76fc7a2d9c7e62c9d9c889ef08db017efb835902;p=tt-rss.git bool_to_sql_bool: for some reason PDO really likes integers for boolean columns incidentally this fixes OPML filter import --- 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