The main db details page couldn't be reached with an empty database

This commit is contained in:
Loïc Chapeaux
2002-05-02 19:51:52 +00:00
parent 6fa0207fd3
commit 488d4da8dc
3 changed files with 7 additions and 2 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-05-02 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* lang/*.inc.php3: cleanup.
* db_details.php3, line 38; db_details_links.php3, line 41: the start db
details page couldn't be reached with an empty database.
2002-05-02 Alexander M. Turek <rabus@users.sourceforge.net>
* tbl_properties_export.php3, lang/*.inc.php3: Clarified the interface.
* lang/italian.inc.php3: Updates, thanks again to

View File

@@ -35,7 +35,7 @@ if (isset($show_query) && $show_query == 'y') {
*/
$sub_part = '';
require('./db_details_db_info.php3');
if ($num_tables == 0) {
if ($num_tables == 0 && empty($db_query_force)) {
$is_info = TRUE;
include('./db_details_structure.php3');
exit();

View File

@@ -38,7 +38,7 @@ else {
?>
<p>
[&nbsp;
<a href="db_details.php3?<?php echo $url_query; ?>">
<a href="db_details.php3?<?php echo $url_query; ?>&amp;db_query_force=1">
<b><?php echo $strHome; ?></b></a>&nbsp;|
<a href="db_details_structure.php3?<?php echo $url_query; ?>">
<b><?php echo $strStructure; ?></b></a>&nbsp;|