diff --git a/ChangeLog b/ChangeLog index 132497b8f..a78cad382 100755 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ $Source$ * lang/chinese_*.inc.php3: Updates, thanks again to Siu Sun (siusun). * lang/german-*.inc.php3: Updates. * tbl_properties_links.php3: Use "TRUNCATE TABLE" instead of "TRUNCATE". + * tbl_indexes.php3: Default page for databases. 2002-08-10 Robin Johnson * libraries/string.lib.php3: diff --git a/tbl_indexes.php3 b/tbl_indexes.php3 index 13be7810a..6a5cb3c56 100644 --- a/tbl_indexes.php3 +++ b/tbl_indexes.php3 @@ -38,13 +38,13 @@ if (!defined('PMA_IDX_INCLUDED')) { header('Location: ' . $cfg['PmaAbsoluteUri'] . 'main.php3?lang=' . $lang . '&convcharset=' . $convcharset . '&server=' . $server . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); exit(); } - // Not a valid table name -> back to the db_details.php3 + // Not a valid table name -> back to the default db_details sub-page if (!empty($table)) { $is_table = @PMA_mysql_query('SHOW TABLES LIKE \'' . PMA_sqlAddslashes($table, TRUE) . '\''); } if (empty($table) || !($is_table && @mysql_numrows($is_table))) { - header('Location: ' . $cfg['PmaAbsoluteUri'] . 'db_details.php3?lang=' . $lang . '&convcharset=' . $convcharset . '&server=' . $server .'&db=' . urlencode($db) . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); + header('Location: ' . $cfg['PmaAbsoluteUri'] . $cfg['DefaultTabDatabase'] . '?lang=' . $lang . '&convcharset=' . $convcharset . '&server=' . $server .'&db=' . urlencode($db) . (isset($message) ? '&message=' . urlencode($message) : '') . '&reload=1'); exit(); } else if (isset($is_table)) { mysql_free_result($is_table);