Skip to content

Commit

Permalink
bug #1717477 Warning on Query page when db is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
lem9 committed May 12, 2007
1 parent 361a433 commit 0a745d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Expand Up @@ -65,6 +65,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #1712570 Deleting last record freezes
- bug #1717339 Missing header when deleting a checked column,
thanks to Michael Keck
- bug #1717477 Warning on Query page when db is empty

2.10.1.0 (2007-04-23)
=====================
Expand Down
6 changes: 6 additions & 0 deletions db_qbe.php
Expand Up @@ -100,6 +100,12 @@
*/
$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);
if (0 == $tbl_result_cnt) {
echo '<div class="warning">' . $strNoTablesFound . '</div>';
require_once './libraries/footer.inc.php';
exit;
}

$i = 0;
$k = 0;

Expand Down

0 comments on commit 0a745d9

Please sign in to comment.