Closed jonmorten closed 10 years ago
The value was only stored when the field key was present in $_POST, i.e. when the checkbox was checked. This caused the attribute value to be 'locked' as true if it was ever stored as true/checked.
Thanks @jjmmkk ! Could you just please remove the parenthesis?
Yes, though I disagree, as I find wrapped ternaries easier to spot.
Code style... ;-)
Thank you for the PR @jjmmkk !
The value was only stored when the field key was present in $_POST, i.e. when the checkbox was checked. This caused the attribute value to be 'locked' as true if it was ever stored as true/checked.