From a4dfae74d4acbfb3b79f6d0efc328f89fdac31fd Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Thu, 22 Jan 2009 16:54:50 +0000 Subject: [PATCH] nbsp for empty comment git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@548 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) . '' : ' ');