Fix maxlength for User and Host on Replication add user form

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2020-02-23 00:15:20 +01:00
parent a64400f91e
commit 999e4a7b0d
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -324,14 +324,14 @@ class ReplicationGui
if ($val['Field'] == 'User') {
strtok($val['Type'], '()');
$v = strtok('()');
if (is_int($v)) {
$username_length = $v;
if (Util::isInteger($v)) {
$username_length = (int) $v;
}
} elseif ($val['Field'] == 'Host') {
strtok($val['Type'], '()');
$v = strtok('()');
if (is_int($v)) {
$hostname_length = $v;
if (Util::isInteger($v)) {
$hostname_length = (int) $v;
}
}
}