]> git.wh0rd.org Git - tt-rss.git/commitdiff
more boolean fixes
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 2 Dec 2017 11:13:16 +0000 (14:13 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 2 Dec 2017 11:13:16 +0000 (14:13 +0300)
include/functions.php

index 887de1c8110e9bcd69afb4d9d0a03e9abac4d8a6..6637bd5d1a1a1d253a508351a2434ee961ca5d39 100644 (file)
        }
 
        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) {