add verification for empty metadata values (#211)

This commit is contained in:
Eduardo Humberto 2019-03-14 19:55:31 -03:00
parent c03626b4d7
commit 706b89353d
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class CSV extends Exporter {
// if (!$meta) means this metadata is not mapped in the collection so there is no value for it
// an empty value must be returned so the number of columns matches the header
if (!$meta) {
if (!$meta || empty($meta->get_value()) ) {
$line[] = '';
continue;
}