diff --git a/adminer/create.inc.php b/adminer/create.inc.php index c2f4bc4f..619ce2ab 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -185,7 +185,7 @@ edit_fields($row["fields"], $collations, "TABLE", $suhosin, $foreign_keys, $comm : "> -' : ''); ?> +server_info >= 5.5 ? 2048 : 60) . '"' . ($comments ? '' : ' class="hidden"') . '>' : ''); ?>

> diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index c05e9bcb..ca7ebd28 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -220,7 +220,7 @@ function type_class($type) { * @return null */ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $foreign_keys = array(), $comments = false) { - global $inout; + global $connection, $inout; ?>   @@ -251,7 +251,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $allowed = 0, $forei checked onclick="var field = this.form['fields[' + this.value + '][field]']; if (!field.value) { field.value = 'id'; field.onchange(); }"> " onchange="this.previousSibling.checked = true;"> -" : ""); ?> +" : ""); ?> ";