From f90ca55a574ded2120488b9e11582c2e381faec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 11 Apr 2016 17:10:38 +0200 Subject: [PATCH] Add missing error check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- import.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/import.php b/import.php index ef513f98c9..b79d73f74a 100644 --- a/import.php +++ b/import.php @@ -457,6 +457,9 @@ if ($import_file != 'none' && ! $error) { */ $import_handle = new File($import_file); $import_handle->checkUploadedFile(); + if ($import_handle->isError()) { + PMA_stopImport($import_handle->getError()); + } $import_handle->setDecompressContent(true); $import_handle->open(); if ($import_handle->isError()) {