correct fix for bug 2143882

This commit is contained in:
Marc Delisle
2008-10-09 11:45:58 +00:00
parent 1c1fbde5f5
commit 415071a21b

View File

@@ -350,9 +350,12 @@ if (!$error) {
} }
} }
if (! $error && $import_handle !== FALSE) {
fclose($import_handle);
}
// Cleanup temporary file // Cleanup temporary file
if ($file_to_unlink != '') { if ($file_to_unlink != '') {
fclose($file_to_unlink);
unlink($file_to_unlink); unlink($file_to_unlink);
} }