From c709576c0e9dd7cae7140038d8aa2e0413c71132 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 20 Aug 2009 14:04:24 +0000 Subject: [PATCH] Describe comments git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@984 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/table.inc.php | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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 "\n"; while ($row = $result->fetch_assoc()) { if (!$row["auto_increment"]) { $auto_increment_only = false; } - if (strlen(trim($row["Comment"]))) { - $comments = true; - } - $rows[] = $row; - } - echo "
" . lang('Column') . "" . lang('Type') . "" . lang('Comment') . "
\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";