Don't use <code> for NULL

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1231 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana 2009-11-09 14:23:00 +00:00
parent c6addd72ae
commit bb46cc9b62

View file

@ -135,7 +135,7 @@ class Adminer {
* @return string
*/
function selectVal($val, $link, $field) {
$return = ($field["type"] == "char" ? "<code>$val</code>" : $val);
$return = ($val != "<i>NULL</i>" && $field["type"] == "char" ? "<code>$val</code>" : $val);
if (ereg('blob|binary', $field["type"]) && !is_utf8($val)) {
$return = lang('%d byte(s)', strlen($val));
}