1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 03:24:01 +02:00

Type char can be translated to description

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@879 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-07-22 14:00:03 +00:00
parent d6e3fc710d
commit 1cf500f260
2 changed files with 5 additions and 2 deletions

View File

@@ -101,7 +101,10 @@ function adminer_row_descriptions($rows, $foreign_keys) {
}
function adminer_select_val($val, $link) {
return call_adminer('select_val', ($link ? "<a href=\"$link\">$val</a>" : ($val == "<i>NULL</i>" ? "" : $val)), $val, $link);
return call_adminer('select_val', ($link ?
"<a href=\"$link\">$val</a>" :
($val == "<i>NULL</i>" ? "" : preg_replace('~^<code>(.*)</code>$~', '\\1', $val))
), $val, $link);
}
function adminer_message_query($query) {