diff --git a/changes.txt b/changes.txt
index 1c4b9a26..332969fa 100644
--- a/changes.txt
+++ b/changes.txt
@@ -1,6 +1,7 @@
phpMinAdmin 1.10.1:
Highlight odd and hover rows
Partition editing comfort (bug #2783446)
+Allow full length in limited int (thanks to Vlasta Neubauer)
phpMinAdmin 1.10.0:
Partitioning (MySQL 5.1)
diff --git a/editing.inc.php b/editing.inc.php
index 16833b69..facbe5c3 100644
--- a/editing.inc.php
+++ b/editing.inc.php
@@ -48,7 +48,8 @@ function input($name, $field, $value) {
} elseif (preg_match('~binary|blob~', $field["type"])) {
echo (ini_get("file_uploads") ? '' : lang('File uploads are disabled.') . ' ');
} else {
- echo '';
+ $maxlength = (!ereg('int', $field["type"]) && preg_match('~^([0-9]+)(,([0-9]+))?$~', $field["length"], $match) ? ($match[1] + ($match[3] ? 1 : 0) + ($match[2] && !$field["unsigned"] ? 1 : 0)) : ($types[$field["type"]] ? $types[$field["type"]] + ($field["unsigned"] ? 0 : 1) : 0));
+ echo '';
}
}
}
diff --git a/export.inc.php b/export.inc.php
index 25c0d6aa..bfb039c9 100644
--- a/export.inc.php
+++ b/export.inc.php
@@ -9,7 +9,7 @@ function dump_csv($row) {
}
function dump_table($table, $style, $is_view = false) {
- global $mysql, $types;
+ global $mysql;
if ($_POST["format"] == "csv") {
echo "\xef\xbb\xbf";
if ($style) {