mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 20:09:27 +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
|
// Process sample file for fields
|
||||||
if (($handle = fopen($GLOBALS['egw']->session->appsession('csvfile'), "rb")) !== FALSE) {
|
if (($handle = fopen($GLOBALS['egw']->session->appsession('csvfile'), "rb")) !== FALSE) {
|
||||||
$data = fgetcsv($handle, 8000, $content['fieldsep']);
|
$data = fgetcsv($handle, 8000, $content['fieldsep']);
|
||||||
|
fclose($handle);
|
||||||
|
unlink($GLOBALS['egw']->session->appsession('csvfile'));
|
||||||
$content['csv_fields'] = translation::convert($data,$content['charset']);
|
$content['csv_fields'] = translation::convert($data,$content['charset']);
|
||||||
|
|
||||||
// Try to match automatically
|
// Try to match automatically
|
||||||
|
Loading…
Reference in New Issue
Block a user