mirror of
https://github.com/friendica/friendica
synced 2024-11-10 08:22:57 +00:00
Avoid Notice: Undefined index: field1 in /src/Module/Register.php on line 253
This commit is contained in:
parent
4308cace68
commit
df9a69db01
1 changed files with 3 additions and 4 deletions
|
@ -248,10 +248,6 @@ class Register extends BaseModule
|
|||
DI::baseUrl()->redirect('register/');
|
||||
}
|
||||
|
||||
|
||||
// Overwriting the "tar pit" field with the real one
|
||||
$arr['email'] = $arr['field1'];
|
||||
|
||||
if ($additional_account) {
|
||||
$user = DBA::selectFirst('user', ['email'], ['uid' => local_user()]);
|
||||
if (!DBA::isResult($user)) {
|
||||
|
@ -264,6 +260,9 @@ class Register extends BaseModule
|
|||
|
||||
$arr['password1'] = $arr['confirm'] = $arr['parent_password'];
|
||||
$arr['repeat'] = $arr['email'] = $user['email'];
|
||||
} else {
|
||||
// Overwriting the "tar pit" field with the real one
|
||||
$arr['email'] = $arr['field1'];
|
||||
}
|
||||
|
||||
if ($arr['email'] != $arr['repeat']) {
|
||||
|
|
Loading…
Reference in a new issue