diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 2233032a..bcc5feed 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -440,19 +440,15 @@ class Adminer {
select_db(DB)) { $result = $dbh->query("SHOW TABLES"); - if (!$result) { - echo "" . lang('No tables.') . "\n"; + if (!$result->num_rows) { + echo "
\n";
- while ($row = $result->fetch_row()) {
- echo '' . lang('select') . ' ';
- echo '' . $this->tableName(array("Name" => $row[0])) . "
\n"; //! Adminer::tableName may work with full table status
- }
+ echo "
\n";
+ while ($row = $result->fetch_row()) {
+ echo '' . lang('select') . ' ';
+ echo '' . $this->tableName(array("Name" => $row[0])) . "
\n"; //! Adminer::tableName may work with full table status
}
}
echo '