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

Explain empty enum value

This commit is contained in:
Jakub Vrana
2010-05-20 23:01:40 +02:00
parent bfff649905
commit 4b38e6c846
2 changed files with 2 additions and 1 deletions

View File

@@ -423,7 +423,7 @@ document.getElementById('username').focus();
function editInput($table, $field, $attrs, $value) {
if ($field["type"] == "enum") {
return ($field["null"] ? "<label><input type='radio'$attrs value=''" . (isset($value) || isset($_GET["select"]) ? "" : " checked") . "><em>NULL</em></label> " : "")
. "<input type='radio'$attrs value='0'" . ($value === 0 ? " checked" : "") . ">"
. "<label><input type='radio'$attrs value='0'" . ($value === 0 ? " checked" : "") . "><em>" . lang('empty') . "</em></label>"
;
}
return "";