summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-06 00:12:28 +0300
committerAndrew Dolgov <[email protected]>2017-12-06 00:12:28 +0300
commit76fc7a2d9c7e62c9d9c889ef08db017efb835902 (patch)
treee1f444c84be2bf1d989a7ed44aa861c6f23b137a
parent8e1450aa1533b59547dfd451e9c979d37eef3486 (diff)
bool_to_sql_bool: for some reason PDO really likes integers for boolean columns
incidentally this fixes OPML filter import
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 02d0416f8..e1e63c2a3 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