mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fixed 'Please fill all inputs!' in some cases on install
This commit is contained in:
parent
f8c2f0f01b
commit
3333ab4ade
@ -64,12 +64,16 @@ $errors = array();
|
||||
|
||||
if($step == 'database') {
|
||||
foreach($_SESSION as $key => $value) {
|
||||
if(strpos($key, 'var_') === false || strpos($key, 'account') !== false || strpos($key, 'password') !== false) {
|
||||
if(strpos($key, 'var_') === false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$key = str_replace('var_', '', $key);
|
||||
|
||||
if(in_array($key, array('account', 'password', 'email', 'player_name'))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if($key != 'usage' && empty($value)) {
|
||||
$errors[] = $locale['please_fill_all'];
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user