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

[BUGFIX] Do not consider "0" as empty in the CSV DB import #491

Merged
merged 1 commit into from
Aug 12, 2023
Merged

Conversation

lolli42
Copy link
Member

@lolli42 lolli42 commented Aug 12, 2023

A DB column value "0" is a perfectly valid value and should not be considered to be empty.

Particularly, having a "0" value as the first value in a DB row in a CSV file should still allow the DB row to get importet.

(In general, empty() in PHP behaves in mysterious ways and should be avoided in favor of more explicit and human-predicable checks.)

Fixes #488

Releases: main, 7, 6

A DB column value "0" is a perfectly valid value and should not be
considered to be empty.

Particularly, having a "0" value as the first value in a DB row
in a CSV file should still allow the DB row to get importet.

(In general, `empty()` in PHP behaves in mysterious ways and should
be avoided in favor of more explicit and human-predicable checks.)

Fixes #488

Releases: main, 7, 6
@lolli42 lolli42 merged commit ca8c648 into 6 Aug 12, 2023
12 checks passed
@lolli42 lolli42 deleted the lolli-2 branch August 12, 2023 15:47
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.

2 participants