mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Close and delete sample CSV file when done with it
This commit is contained in:
parent
76d2792308
commit
44dbdb1864
@ -126,6 +126,8 @@ class importexport_wizard_basic_import_csv
|
||||
// Process sample file for fields
|
||||
if (($handle = fopen($GLOBALS['egw']->session->appsession('csvfile'), "rb")) !== FALSE) {
|
||||
$data = fgetcsv($handle, 8000, $content['fieldsep']);
|
||||
fclose($handle);
|
||||
unlink($GLOBALS['egw']->session->appsession('csvfile'));
|
||||
$content['csv_fields'] = translation::convert($data,$content['charset']);
|
||||
|
||||
// Try to match automatically
|
||||
|
Loading…
Reference in New Issue
Block a user