Issue #3240192 by andypost, Berdir: \Drupal\user\AccountForm::buildEntity() causing deprecations in PHP 8.1
parent
b99ec61915
commit
1cdc36bcb4
|
@ -374,7 +374,7 @@ abstract class AccountForm extends ContentEntityForm implements TrustedCallbackI
|
|||
}
|
||||
|
||||
// Set existing password if set in the form state.
|
||||
$current_pass = trim($form_state->getValue('current_pass'));
|
||||
$current_pass = trim($form_state->getValue('current_pass', ''));
|
||||
if (strlen($current_pass) > 0) {
|
||||
$account->setExistingPassword($current_pass);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue