summaryrefslogtreecommitdiff
path: root/classes/pref/feeds.php
diff options
context:
space:
mode:
authorFrenck Lutke <[email protected]>2021-02-25 12:24:23 +0100
committerFrenck Lutke <[email protected]>2021-02-25 12:24:23 +0100
commit27b676b7b2f79856fe72cd614372c7a9a0e58939 (patch)
tree17421c6d84af0d9e45c95f0372f34320549d5835 /classes/pref/feeds.php
parent2f2642bbd4bf040b07d1bba5fd2a93da5bd74cf6 (diff)
fix checkboxes shown as checked when they're not with mysql
The issue occurs because boolean/tinyint values are retrieved from mysql as strings, and in php/js all non-empty strings are cast as boolean true. Current PDO mysql driver doesn't support `PDO::ATTR_STRINGIFY_FETCHES = false`, and if I disable prepare-emulation so it uses the native MySQL driver instead which supposedly does support it, prepare statements no longer play nice with named parameters. Every remaining clean solution that comes to mind that can cover all cases, just for MySQL, adds an annoying amount of additional code / overhead. As long as the `App.FormFields.checkbox_tag()` JS function is the only one suffering from the lack of conversion, I'll go with easy ugly over here.
Diffstat (limited to 'classes/pref/feeds.php')
0 files changed, 0 insertions, 0 deletions