summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-02 14:02:01 +0300
committerAndrew Dolgov <[email protected]>2017-12-02 14:02:01 +0300
commit7ccb4e91ff45cab907b43de1cc36a3b0ab5a025d (patch)
tree96895e4c37fe3263839139a46e62880959465c75 /include/functions.php
parent248c62a1cc9fe54255dbf27a56d02ac398a7a588 (diff)
boolean handling changes which probably won't break everything
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php12
1 files changed, 2 insertions, 10 deletions
diff --git a/include/functions.php b/include/functions.php
index 31a0300d7..0b301b82e 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -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