aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-03-05 09:20:04 -0800
committerMatt Friedman <maf675@gmail.com>2016-03-05 09:20:04 -0800
commit8c5d6efad5262417db341491f7c625832b226b22 (patch)
tree78ddfd47e31730633f7f1a77620a71d75fdf430e
parent7b0452e53aa750761c3042183e5ad7dd2cb3b344 (diff)
downloadforums-8c5d6efad5262417db341491f7c625832b226b22.tar
forums-8c5d6efad5262417db341491f7c625832b226b22.tar.gz
forums-8c5d6efad5262417db341491f7c625832b226b22.tar.bz2
forums-8c5d6efad5262417db341491f7c625832b226b22.tar.xz
forums-8c5d6efad5262417db341491f7c625832b226b22.zip
[ticket/12684] Add an error on user creation failure
PHPBB3-12684
-rw-r--r--phpBB/phpbb/console/command/user/add.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/phpbb/console/command/user/add.php b/phpBB/phpbb/console/command/user/add.php
index 6937cd17d2..187062f020 100644
--- a/phpBB/phpbb/console/command/user/add.php
+++ b/phpBB/phpbb/console/command/user/add.php
@@ -185,6 +185,12 @@ class add extends \phpbb\console\command\command
);
$user_id = (int) user_add($user_row);
+
+ if (!$user_id)
+ {
+ $io->error($this->language->lang('AUTH_NO_PROFILE_CREATED'));
+ return 1;
+ }
if ($input->getOption('send-email') && $this->config['email_enable'])
{