bug #3062454, Display routines/events also when no tables are defined

This commit is contained in:
Dieter Adriaenssens
2010-10-07 20:32:07 +02:00
parent 1c49cd3d64
commit 8c34269e52
4 changed files with 29 additions and 20 deletions

View File

@@ -46,24 +46,6 @@ if (empty($is_info)) {
require_once './libraries/replication.inc.php';
}
// 1. No tables
if ($num_tables == 0) {
echo '<p>' . $strNoTablesFound . '</p>' . "\n";
if (empty($db_is_information_schema)) {
require './libraries/display_create_table.lib.php';
} // end if (Create Table dialog)
/**
* Displays the footer
*/
require_once './libraries/footer.inc.php';
exit;
}
// else
// 2. Shows table informations - staybyte - 11 June 2001
require_once './libraries/bookmark.lib.php';
require_once './libraries/mysql_charsets.lib.php';
@@ -113,6 +95,32 @@ if (true == $cfg['PropertiesIconic']) {
$titles['NoEmpty'] = $strEmpty;
}
// 1. No tables
if ($num_tables == 0) {
echo '<p>' . $strNoTablesFound . '</p>' . "\n";
// Routines
require './libraries/db_routines.inc.php';
// Events
if (PMA_MYSQL_INT_VERSION > 50100) {
require './libraries/db_events.inc.php';
}
if (empty($db_is_information_schema)) {
require './libraries/display_create_table.lib.php';
} // end if (Create Table dialog)
/**
* Displays the footer
*/
require_once './libraries/footer.inc.php';
exit;
}
// else
// 2. Shows table informations
/**
* Displays the tables list
*/