Save bytes

This commit is contained in:
Jakub Vrana
2026-01-31 23:26:10 +01:00
parent ca7c4d90e1
commit 58ff31a15d

View File

@@ -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"];