From 8ff3cbb32e8fcae1e8ce7d83e5718f43afaacdb8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 3 Dec 2017 09:26:11 +0300 Subject: filters: remove sql_bool_to_bool() checkbox_to_sql_bool: return ints (???) --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/functions.php') 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() { -- cgit v1.2.3-54-g00ecf