summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-12-03 09:26:11 +0300
committerAndrew Dolgov <[email protected]>2017-12-03 09:26:11 +0300
commit8ff3cbb32e8fcae1e8ce7d83e5718f43afaacdb8 (patch)
tree28634baf6435eae3a99c8c007d02e8bd6fac4215 /include/functions.php
parentb431d5252039630a40f275edb70e664495c696b9 (diff)
filters: remove sql_bool_to_bool()
checkbox_to_sql_bool: return ints (???)
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index 7bf5460db..e781eee51 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -1053,7 +1053,7 @@
}
function checkbox_to_sql_bool($val) {
- return ($val == "on") ? true : false;
+ return ($val == "on") ? 1 : 0;
}
function uniqid_short() {