summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-17 21:04:16 +0400
committerAndrew Dolgov <[email protected]>2013-03-17 21:04:16 +0400
commit9955a134621e75a1490a2cdc75c2a00c23f54507 (patch)
tree0f2d58666f32cee7770d4180375d0502ddada722 /include
parent95d40d8546c7bcec1916bd86fa73042521f97967 (diff)
properly allow false parameters passed through to API calls (refs #576)
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 6e48a700a..b43fda3a1 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -852,7 +852,7 @@
}
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;