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:
parent
c6addd72ae
commit
bb46cc9b62
|
@ -135,7 +135,7 @@ class Adminer {
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function selectVal($val, $link, $field) {
|
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)) {
|
if (ereg('blob|binary', $field["type"]) && !is_utf8($val)) {
|
||||||
$return = lang('%d byte(s)', strlen($val));
|
$return = lang('%d byte(s)', strlen($val));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue