correct fix for bug 2143882

This commit is contained in:
Marc Delisle
2008-10-09 11:45:58 +00:00
parent 8924ab9d79
commit 890a3a4405

View File

@@ -351,9 +351,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);
} }