Fix edit_type after 1f21cd43

This commit is contained in:
Jakub Vrana 2018-01-30 16:21:04 +01:00
parent 78f0a1152e
commit cc31a69b65

View file

@ -143,7 +143,7 @@ function edit_type($key, $field, $collations, $foreign_keys = array(), $extra_ty
$type = $field["type"];
?>
<td><select name="<?php echo h($key); ?>[type]" class="type" aria-labelledby="label-type"><?php
if ($type && !isset($types[$type], $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;
}
if ($foreign_keys) {