diff options
author | Andrew Dolgov <[email protected]> | 2022-12-30 19:07:15 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-12-30 19:07:15 +0300 |
commit | a16acd65fce2f933395b12d5e7296aac19c28dc2 (patch) | |
tree | 49d1084cc61d046b90f2485abe32f33407cbaea9 /include/functions.php | |
parent | 2be8d58509d4da57de78568e75fa15038ed9eb0c (diff) |
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()
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 2 insertions, 0 deletions
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; |