1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:35:57 +00:00

boolean handling changes which probably won't break everything

This commit is contained in:
Andrew Dolgov
2017-12-02 14:02:01 +03:00
parent 248c62a1cc
commit 7ccb4e91ff
2 changed files with 4 additions and 10 deletions

View File

@@ -941,19 +941,11 @@
}
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