Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert ini_get result to bool before evaluating #446

Open
wants to merge 2 commits into
base: 1.14.x
Choose a base branch
from

Conversation

74656c
Copy link

@74656c 74656c commented Aug 10, 2022

ini_get returns a string, so checking === 0 won't work.
Convert ini_get result to bool before evaluating.
FILTER_VALIDATE_BOOLEAN will return true for ["1", "true", "on" and "yes"] and false for ["0", "false", "off" and "no"]

…LEAN will return true for ["1", "true", "on" and "yes"] and false for ["0", "false", "off" and "no"]
@derrabus derrabus added the bug label Oct 5, 2022
@derrabus derrabus changed the base branch from 1.13.x to 1.14.x August 14, 2023 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants