From 415071a21bcfd392a72407594f83b57ed3edd15b Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 9 Oct 2008 11:45:58 +0000 Subject: [PATCH] correct fix for bug 2143882 --- import.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/import.php b/import.php index f9d53ad58..73e1223c2 100644 --- a/import.php +++ b/import.php @@ -350,9 +350,12 @@ if (!$error) { } } +if (! $error && $import_handle !== FALSE) { + fclose($import_handle); +} + // Cleanup temporary file if ($file_to_unlink != '') { - fclose($file_to_unlink); unlink($file_to_unlink); }