do not show an empty Routines fieldset
This commit is contained in:
@@ -512,10 +512,7 @@ if ($at_least_one_view_exceeds_max_count && !$db_is_information_schema) {
|
||||
|
||||
<?php
|
||||
// Routines
|
||||
echo '<fieldset>' . "\n";
|
||||
echo ' <legend>' . $strRoutines . '</legend>' . "\n";
|
||||
require './libraries/db_routines.inc.php';
|
||||
echo '</fieldset>' . "\n";
|
||||
|
||||
/**
|
||||
* Work on the database
|
||||
|
@@ -24,6 +24,8 @@ if (PMA_MYSQL_INT_VERSION >= 50002) {
|
||||
$routines = PMA_DBI_fetch_result('SELECT SPECIFIC_NAME,ROUTINE_NAME,ROUTINE_TYPE,DTD_IDENTIFIER FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA= \'' . PMA_sqlAddslashes($db,true) . '\';');
|
||||
|
||||
if ($routines) {
|
||||
echo '<fieldset>' . "\n";
|
||||
echo ' <legend>' . $strRoutines . '</legend>' . "\n";
|
||||
echo '<table border="0">';
|
||||
echo sprintf('<tr>
|
||||
<th>%s</th>
|
||||
@@ -80,6 +82,7 @@ if (PMA_MYSQL_INT_VERSION >= 50002) {
|
||||
$ct++;
|
||||
}
|
||||
echo '</table>';
|
||||
echo '</fieldset>' . "\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user