diff --git a/index.php b/index.php
index c1fe02a0..e1389f26 100644
--- a/index.php
+++ b/index.php
@@ -185,7 +185,7 @@ if (isset($_GET["download"])) {
echo ' | ' . lang('Table') . ' | ' . lang('Engine') . ' | ' . lang('Comment') . ' | ' . lang('Collation') . ' | ' . lang('Data Length') . ' | ' . lang('Index Length') . ' | ' . lang('Data Free') . ' | ' . lang('Auto Increment') . ' | ' . lang('Rows') . " |
\n";
while ($row = $result->fetch_assoc()) {
table_comment($row);
- echo '
| ' . (isset($row["Rows"]) ? ' | ' . htmlspecialchars($row["Name"]) . " | $row[Engine] | " . htmlspecialchars($row["Comment"]) . " | $row[Collation]" : ' | ' . htmlspecialchars($row["Name"]) . ' | ' . lang('View') . '');
+ echo ' |
|---|
| ' . (isset($row["Rows"]) ? ' | ' . htmlspecialchars($row["Name"]) . " | $row[Engine] | " . (strlen(trim($row["Comment"])) ? htmlspecialchars($row["Comment"]) : " ") . " | $row[Collation]" : ' | ' . htmlspecialchars($row["Name"]) . ' | ' . lang('View') . '');
foreach ((isset($row["Rows"]) ? array("Data_length" => "create", "Index_length" => "indexes", "Data_free" => "edit", "Auto_increment" => "create", "Rows" => "select") : array()) as $key => $link) {
$val = number_format($row[$key], 0, '.', lang(','));
echo ' | ' . (strlen($row[$key]) ? '' . ($key == "Rows" && $row["Engine"] == "InnoDB" && $val ? lang('around %s', $val) : $val) . '' : ' ');
|
|---|