From e068339e90c910a0832618305c6f8ffb9498ddf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 11 Apr 2016 17:20:01 +0200 Subject: [PATCH] Fix import handle cleanup on error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/import.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/import.lib.php b/libraries/import.lib.php index 66141dd711..06bf334b12 100644 --- a/libraries/import.lib.php +++ b/libraries/import.lib.php @@ -1343,7 +1343,7 @@ function PMA_stopImport( Message $error_message ) // Close open handles if ($import_handle !== false && $import_handle !== null) { - fclose($import_handle); + $import_handle->close(); } // Delete temporary file