From 1ef58daaaaba0788ceba2ba7ec90647d996c57c2 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Sun, 12 Jul 2009 18:47:57 +0000 Subject: [PATCH] Comments git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@807 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- adminer/select.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 6c1c2049..52427d2c 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -273,13 +273,13 @@ if (!$columns) { } if (!isset($val)) { $val = "NULL"; - } elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && !is_utf8($val)) { + } elseif (preg_match('~blob|binary~', $fields[$key]["type"]) && !is_utf8($val)) { //! download link may be printed even with is_utf8 $val = '' . lang('%d byte(s)', strlen($val)) . ''; } else { 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))); + $val = nl2br(shorten_utf8($val, intval($text_length))); // usage of LEFT() would reduce traffic but complicates query } else { $val = nl2br(htmlspecialchars($val)); if ($fields[$key]["type"] == "char") {