-
Notifications
You must be signed in to change notification settings - Fork 170
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
DKAN-4291 add mysql empty row removal option #4292
base: 2.x
Are you sure you want to change the base?
Conversation
58145d4
to
5e7ec8f
Compare
5e7ec8f
to
01f1300
Compare
@@ -128,7 +129,7 @@ protected function getColsFromFile(string $file_path, string $delimiter): array | |||
$f = fopen($file_path, 'r'); | |||
|
|||
// Ensure the file could be successfully opened. | |||
if ($f === FALSE) { | |||
if (!isset($f) || $f === FALSE) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is 2.18 cruft that snuck back in due to me working in 2.18. I will fix this and the others of similar sneakiness.
// Ensure the columns of the resource file were successfully read. $columns | ||
// could be array, FALSE, or NULL. | ||
if (!$columns) { | ||
// Ensure the columns of the resource file were successfully read. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.18 cruft
Thanks for working on this @swirtSJW please include tests for the new code. |
@swirtSJW check out the tests |
Fixes #4291
Describe your changes
QA Steps
Checklist before requesting review
If any of these are left unchecked, please provide an explanation