diff --git a/select.inc.php b/select.inc.php index 2066aba2..0c6879a6 100644 --- a/select.inc.php +++ b/select.inc.php @@ -74,7 +74,7 @@ if (!mysql_num_rows($result)) { if (!isset($val)) { $val = "NULL"; } else { - $val = htmlspecialchars($val); + $val = (strlen(trim($val)) ? htmlspecialchars($val) : " "); foreach ((array) $foreign_keys[$key] as $foreign_key) { if (count($foreign_keys[$key]) == 1 || count($foreign_key[2]) == 1) { $val = '">' . "$val";