]> git.wh0rd.org Git - tt-rss.git/commitdiff
sql_bool_to_bool: backwards compat fix
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 2 Dec 2017 19:39:34 +0000 (22:39 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 2 Dec 2017 19:39:34 +0000 (22:39 +0300)
include/functions.php

index 459762d58ea7c4b2fac427f71aad0fc82abf23c1..21cf3fef8372c9094e3d7f6edf56b0f2c63b6a39 100644 (file)
        }
 
        function sql_bool_to_bool($s) {
-               return $s && ($s != "f" && $s != "false"); //no-op for PDO, backwards compat for legacy layer
+               return $s && ($s !== "f" && $s !== "false"); //no-op for PDO, backwards compat for legacy layer
        }
 
        function bool_to_sql_bool($s) {