From 6dc1dab2d5e74852056da4c7b70f0c5e91fb279d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 13 May 2003 09:52:35 +0000 Subject: [PATCH] Correctly checks whether table exists. --- ChangeLog | 1 + read_dump.php3 | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8885ca2b8..06ff925ee 100755 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ $Source$ (RFE #734985). * libraries/relation.lib.php3: Fixed warning in PMA_purgeHistory. * ldi_check.php3, lang/*: Behave correctly if no file is given for loading. + * read_dump.php3: Correctly checks whether table exists. 2003-05-12 Garvin Hicking * queryframe.php3: Remove left/bottom margin to better fit the link title diff --git a/read_dump.php3 b/read_dump.php3 index cd2e30a06..31e194bec 100644 --- a/read_dump.php3 +++ b/read_dump.php3 @@ -241,6 +241,7 @@ if ($goto == 'tbl_properties.php3') { if (!isset($table)) { $goto = 'db_details.php3'; } else { + PMA_mysql_select_db($db); $is_table = @PMA_mysql_query('SHOW TABLES LIKE \'' . PMA_sqlAddslashes($table, TRUE) . '\''); if (!($is_table && @mysql_numrows($is_table))) { $goto = 'db_details.php3';