Browse Source

fix export headers to xls and csv #1933

Alex Aragon 7 years ago
parent
commit
2a9f177df9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/admin/user_export.php

+ 1 - 1
main/admin/user_export.php

@@ -132,7 +132,7 @@ if ($form->validate()) {
 	$extra_fields = UserManager::get_extra_fields(0, 0, 5, 'ASC', false);
         
         if (!empty($export['addcsvheader'])) {  
-	if ($export['addcsvheader'] == '1' && ($export['file_type'] == 'csv')) {
+	if ($export['addcsvheader'] == '1' && ($export['file_type'] == 'csv' || $export['file_type'] == 'xls' )) {
 		if ($_configuration['password_encryption'] != 'none') {
 			$data[] = array(
                             'UserId',