bug #1717477 Warning on Query page when db is empty

This commit is contained in:
Marc Delisle
2007-05-12 09:56:36 +00:00
parent a0d951513e
commit 3b56deb2a3
2 changed files with 7 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ $HeadURL$
- bug #1712570 Deleting last record freezes - bug #1712570 Deleting last record freezes
- bug #1717339 Missing header when deleting a checked column, - bug #1717339 Missing header when deleting a checked column,
thanks to Michael Keck thanks to Michael Keck
- bug #1717477 Warning on Query page when db is empty
2.10.1.0 (2007-04-23) 2.10.1.0 (2007-04-23)
===================== =====================

View File

@@ -100,6 +100,12 @@ if (!empty($TableList)) {
*/ */
$tbl_result = PMA_DBI_query('SHOW TABLES FROM ' . PMA_backquote($db) . ';', null, PMA_DBI_QUERY_STORE); $tbl_result = PMA_DBI_query('SHOW TABLES FROM ' . PMA_backquote($db) . ';', null, PMA_DBI_QUERY_STORE);
$tbl_result_cnt = PMA_DBI_num_rows($tbl_result); $tbl_result_cnt = PMA_DBI_num_rows($tbl_result);
if (0 == $tbl_result_cnt) {
echo '<div class="warning">' . $strNoTablesFound . '</div>';
require_once './libraries/footer.inc.php';
exit;
}
$i = 0; $i = 0;
$k = 0; $k = 0;