Add missing error check

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-04-11 17:10:38 +02:00
parent b4d53c1970
commit f90ca55a57

View File

@ -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()) {