Correctly checks whether table exists.
This commit is contained in:
@@ -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
|
||||
|
@@ -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';
|
||||
|
Reference in New Issue
Block a user