mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
Merge pull request #1 from dennis2society/dennis2society-csv_whitespace_column_fix
Ignore CSV labels with a whitespace
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -120,7 +120,7 @@ if (safeget('output') == 'csv') {
|
||||
$columns = array();
|
||||
foreach ($handler->getStruct() as $key => $field) {
|
||||
$label = trim($field['label']);
|
||||
if ($field['display_in_list'] && $label != '') { # don't show fields without a label
|
||||
if ($field['display_in_list'] && $label != '' && $label != ' ') { # don't show fields without a label and those with a whitespace
|
||||
$header[] = html_entity_decode($label, ENT_COMPAT | ENT_HTML401, 'UTF-8');
|
||||
$columns[] = $key;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user