Correctly checks whether table exists.

This commit is contained in:
Michal Čihař
2003-05-13 09:52:35 +00:00
parent 53b4212040
commit 6dc1dab2d5
2 changed files with 2 additions and 0 deletions

View File

@@ -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 <me@supergarv.de>
* queryframe.php3: Remove left/bottom margin to better fit the link title

View File

@@ -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';