do not show an empty Routines fieldset

This commit is contained in:
Marc Delisle
2007-04-06 13:31:52 +00:00
parent f9c0bc6ff1
commit 1c6358c1bd
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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";
}
}
?>