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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Zero in condition #1

Merged
merged 1 commit into from Feb 16, 2017
Merged

Fix: Zero in condition #1

merged 1 commit into from Feb 16, 2017

Conversation

tg666
Copy link
Contributor

@tg666 tg666 commented Feb 16, 2017

  • changed condition !empty($value) to $value !== '''. PHP generated offset Notice if I try parse condition string with zero (e.g. 1 && 0) because string '0' is evaluated by function empty() as TRUE

btw. thank you very much for this package 馃憤 馃檪

- changed condition `!empty($value)` to `$value !== '''`. PHP generated offset Notice if I try parse condition string with zero (e.g. `1 && 0`) because string '0' is evaluated by function empty() as TRUE
@zwilias zwilias merged commit 83b3e95 into zwilias:master Feb 16, 2017
@zwilias
Copy link
Owner

zwilias commented Feb 16, 2017

Thanks, @tg666 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants