1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Fix indent

This commit is contained in:
Jakub Vrana
2025-02-23 13:36:37 +01:00
parent 08a956cf2a
commit 483cbf1616

View File

@@ -209,16 +209,15 @@ function json_row($key, $val = null) {
function edit_type($key, $field, $collations, $foreign_keys = array(), $extra_types = array()) { function edit_type($key, $field, $collations, $foreign_keys = array(), $extra_types = array()) {
global $structured_types, $types, $unsigned, $on_actions; global $structured_types, $types, $unsigned, $on_actions;
$type = $field["type"]; $type = $field["type"];
?> ?><td><select name="<?php echo h($key); ?>[type]" class="type" aria-labelledby="label-type"><?php
<td><select name="<?php echo h($key); ?>[type]" class="type" aria-labelledby="label-type"><?php if ($type && !isset($types[$type]) && !isset($foreign_keys[$type]) && !in_array($type, $extra_types)) {
if ($type && !isset($types[$type]) && !isset($foreign_keys[$type]) && !in_array($type, $extra_types)) {
$extra_types[] = $type; $extra_types[] = $type;
} }
if ($foreign_keys) { if ($foreign_keys) {
$structured_types[lang('Foreign keys')] = $foreign_keys; $structured_types[lang('Foreign keys')] = $foreign_keys;
} }
echo optionlist(array_merge($extra_types, $structured_types), $type); echo optionlist(array_merge($extra_types, $structured_types), $type);
?></select><td><input ?></select><td><input
name="<?php echo h($key); ?>[length]" name="<?php echo h($key); ?>[length]"
value="<?php echo h($field["length"]); ?>" value="<?php echo h($field["length"]); ?>"
size="3" size="3"