From 5f10bfdd8114a46779ea2b47b340811729dbccef Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 20 Jun 2009 11:23:06 +0000 Subject: [PATCH] undefined import_handle when importing zip file --- import.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/import.php b/import.php index a361b1ba7..2c0ca5fd7 100644 --- a/import.php +++ b/import.php @@ -308,7 +308,8 @@ if ($import_file != 'none' && !$error) { 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'); $error = TRUE; }