]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
properly allow false parameters passed through to API calls (refs #576)
[tt-rss.git] / include / functions.php
index 6e48a700a5e99761af69e74ac6171c5ea5103d9e..b43fda3a14672469f264083e6a0be361f149a40c 100644 (file)
        }
 
        function sql_bool_to_bool($s) {
-               if ($s == "t" || $s == "1" || $s == "true") {
+               if ($s == "t" || $s == "1" || strtolower($s) == "true") {
                        return true;
                } else {
                        return false;