mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 18:59:21 +02:00
Fix character loading with invalid names
Fixed characters loading with names that has been created with other AAC
This commit is contained in:
parent
8d7c694c61
commit
870cc8f98b
@ -120,8 +120,6 @@ if(empty($name))
|
|||||||
|
|
||||||
$name = str_replace('/', '', $name);
|
$name = str_replace('/', '', $name);
|
||||||
|
|
||||||
if(check_name($name))
|
|
||||||
{
|
|
||||||
$oldName = '';
|
$oldName = '';
|
||||||
|
|
||||||
$player = $ots->createObject('Player');
|
$player = $ots->createObject('Player');
|
||||||
@ -692,9 +690,6 @@ if(check_name($name))
|
|||||||
|
|
||||||
echo generate_search_table(true);
|
echo generate_search_table(true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else
|
|
||||||
$search_errors[] = 'This name contains invalid letters. Please use only A-Z, a-z and space. Minimum length is 3 characters.';
|
|
||||||
|
|
||||||
if(!empty($search_errors))
|
if(!empty($search_errors))
|
||||||
output_errors($search_errors);
|
output_errors($search_errors);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user