aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/phpbb/console/command/user/add.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/phpBB/phpbb/console/command/user/add.php b/phpBB/phpbb/console/command/user/add.php
index 6edd214d14..6f0988db5e 100644
--- a/phpBB/phpbb/console/command/user/add.php
+++ b/phpBB/phpbb/console/command/user/add.php
@@ -140,14 +140,13 @@ class add extends \phpbb\console\command\command
if (!$data['new_password'])
{
- $self = $this;
$question = new Question($this->ask_user('PASSWORD'));
- $question->setValidator(function ($value) use ($self, $helper, $input, $output) {
- $question = new Question($self->ask_user('CONFIRM_PASSWORD'));
+ $question->setValidator(function ($value) use ($helper, $input, $output) {
+ $question = new Question($this->ask_user('CONFIRM_PASSWORD'));
$question->setHidden(true);
if ($helper->ask($input, $output, $question) != $value)
{
- throw new runtime_exception($self->language->lang('NEW_PASSWORD_ERROR'));
+ throw new runtime_exception($this->language->lang('NEW_PASSWORD_ERROR'));
}
return $value;
});