From a16acd65fce2f933395b12d5e7296aac19c28dc2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 30 Dec 2022 19:07:15 +0300 Subject: batch feed editor: - fix some field changes not applying because of DB type errors - rework to use bound vars instead of sql query concatenation deprecate: checkbox_to_sql_bool(), bool_to_sql_bool() --- include/functions.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index 66f529bf7..403c96b85 100644 --- a/include/functions.php +++ b/include/functions.php @@ -357,6 +357,7 @@ return $s && ($s !== "f" && $s !== "false"); //no-op for PDO, backwards compat for legacy layer } + /** @deprecated misleading name, seems to be pointless wrapper */ function bool_to_sql_bool(bool $s): int { return $s ? 1 : 0; } @@ -412,6 +413,7 @@ /** * @param mixed $val + * @deprecated misleading name, seems to be a pointless wrapper */ function checkbox_to_sql_bool($val): int { return ($val == "on") ? 1 : 0; -- cgit v1.2.3-54-g00ecf