diff --git a/adminer/include/html.inc.php b/adminer/include/html.inc.php index 0a4b22f7..49ae8f86 100644 --- a/adminer/include/html.inc.php +++ b/adminer/include/html.inc.php @@ -229,7 +229,7 @@ function input(array $field, $value, ?string $function, ?bool $autofocus = false $field["type"] = "enum"; $field["length"] = $enums; } - $disabled = stripos($field["default"], "GENERATED ALWAYS AS ") === 0 ? " disabled=''" : ""; + $disabled = stripos($field["default"], "GENERATED ALWAYS AS ") === 0 ? " disabled" : ""; $attrs = " name='fields[$name]" . ($field["type"] == "enum" || $field["type"] == "set" ? "[]" : "") . "'$disabled" . ($autofocus ? " autofocus" : ""); echo driver()->unconvertFunction($field) . " "; $table = $_GET["edit"] ?: $_GET["select"];