undefined import_handle when importing zip file

This commit is contained in:
Marc Delisle
2009-06-20 11:23:06 +00:00
parent b45effb800
commit eb5a4493e3

View File

@@ -308,7 +308,8 @@ if ($import_file != 'none' && !$error) {
break; break;
} }
} }
if (!$error && $import_handle === FALSE) { // use isset() because zip compression type does not use a handle
if (!$error && isset($import_handle) && $import_handle === FALSE) {
$message = PMA_Message::error('strFileCouldNotBeRead'); $message = PMA_Message::error('strFileCouldNotBeRead');
$error = TRUE; $error = TRUE;
} }