]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
boolean handling changes which probably won't break everything
[tt-rss.git] / include / functions.php
index 31a0300d75428733241358be45b306ce1dc20d9f..0b301b82e0f3b34faed5320503c125a4b255d979 100644 (file)
        }
 
        function sql_bool_to_bool($s) {
-               if ($s == "t" || $s == "1" || strtolower($s) == "true") {
-                       return true;
-               } else {
-                       return false;
-               }
+               return $s; //no-op for PDO
        }
 
        function bool_to_sql_bool($s) {
-               if ($s) {
-                       return "true";
-               } else {
-                       return "false";
-               }
+               return (bool)$s; //no-op for PDO
        }
 
        // Session caching removed due to causing wrong redirects to upgrade