diff --git a/adminer/table.inc.php b/adminer/table.inc.php
index 65d37c55..47c5cffa 100644
--- a/adminer/table.inc.php
+++ b/adminer/table.inc.php
@@ -10,22 +10,15 @@ page_header(($result && $is_view ? lang('View') : lang('Table')) . ": " . h($_GE
if ($result) {
$auto_increment_only = true;
- $comments = false;
- $rows = array();
+ echo "
\n";
+ echo "" . lang('Column') . " | " . lang('Type') . " | " . lang('Comment') . " |
\n";
while ($row = $result->fetch_assoc()) {
if (!$row["auto_increment"]) {
$auto_increment_only = false;
}
- if (strlen(trim($row["Comment"]))) {
- $comments = true;
- }
- $rows[] = $row;
- }
- echo "\n";
- foreach ($rows as $row) {
echo "" . h($row["Field"]);
echo " | " . h($row["Type"]) . ($row["Null"] == "YES" ? " NULL" : "");
- echo ($comments ? " | " . (strlen(trim($row["Comment"])) ? h($row["Comment"]) : " ") : "");
+ echo " | " . (strlen(trim($row["Comment"])) ? h($row["Comment"]) : " ");
echo "\n";
}
echo " |
---|
\n";