mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Explain empty enum value
This commit is contained in:
@@ -423,7 +423,7 @@ document.getElementById('username').focus();
|
|||||||
function editInput($table, $field, $attrs, $value) {
|
function editInput($table, $field, $attrs, $value) {
|
||||||
if ($field["type"] == "enum") {
|
if ($field["type"] == "enum") {
|
||||||
return ($field["null"] ? "<label><input type='radio'$attrs value=''" . (isset($value) || isset($_GET["select"]) ? "" : " checked") . "><em>NULL</em></label> " : "")
|
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 "";
|
return "";
|
||||||
|
@@ -257,4 +257,5 @@ $translations = array(
|
|||||||
'Alter type' => 'Pozměnit typ',
|
'Alter type' => 'Pozměnit typ',
|
||||||
'Search data in tables' => 'Vyhledat data v tabulkách',
|
'Search data in tables' => 'Vyhledat data v tabulkách',
|
||||||
'From server' => 'Ze serveru',
|
'From server' => 'Ze serveru',
|
||||||
|
'empty' => 'prázdné',
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user