diff --git a/ChangeLog b/ChangeLog index 0e3107659..262a3bb18 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) ===================== diff --git a/db_qbe.php b/db_qbe.php index 68f42f275..b7da986f1 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -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_cnt = PMA_DBI_num_rows($tbl_result); +if (0 == $tbl_result_cnt) { + echo '
' . $strNoTablesFound . '
'; + require_once './libraries/footer.inc.php'; + exit; +} + $i = 0; $k = 0;