1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 04:11:27 +02:00

Ignore tables and fields with empty name

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@861 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-07-21 13:59:02 +00:00
parent 2faa08cd15
commit 116c873671
5 changed files with 56 additions and 36 deletions

View File

@@ -108,8 +108,9 @@ function adminer_navigation($missing) {
} else {
echo "<p>\n";
foreach ($table_status as $row) {
if (isset($row["Engine"])) { // ignore views
echo '<a href="' . htmlspecialchars($SELF) . 'select=' . urlencode($row["Name"]) . '">' . adminer_table_name($row) . "</a><br>\n";
$name = adminer_table_name($row);
if (isset($row["Engine"]) && strlen($name)) { // ignore views and tables without name
echo '<a href="' . htmlspecialchars($SELF) . 'select=' . urlencode($row["Name"]) . "\">$name</a><br>\n";
}
}
}