From a69fff7e719cb36f9cec4282480f285f3cafd01f Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sun, 21 Jun 2009 23:41:28 +0000 Subject: [PATCH] Print \n as
, not   git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@736 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/include/functions.inc.php | 2 +- adminer/select.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 39dd099c..f1daceb7 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -207,7 +207,7 @@ function select($result, $dbh2 = null) { } else { if ($blobs[$key] && !is_utf8($val)) { $val = "" . lang('%d byte(s)', strlen($val)) . ""; //! link to download - } elseif (!strlen(trim($val))) { + } elseif (!strlen(trim($val, " \t"))) { $val = " "; // some content to print a border } else { $val = nl2br(htmlspecialchars($val)); diff --git a/adminer/select.inc.php b/adminer/select.inc.php index dff0f66b..69fb8af7 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -263,7 +263,7 @@ if (!$columns) { } elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && !is_utf8($val)) { $val = '' . lang('%d byte(s)', strlen($val)) . ''; } else { - if (!strlen(trim($val))) { + if (!strlen(trim($val, " \t"))) { $val = " "; } elseif (intval($text_length) > 0 && preg_match('~blob|text~', $fields[$key]["type"])) { $val = nl2br(shorten_utf8($val, intval($text_length)));