diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-01-08 23:59:46 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-01-08 23:59:46 +0100 |
commit | 5d89c283f0dfbce0f615432671628d9d10736334 (patch) | |
tree | 5b34d97eba99a573aa0f55424dcb977a5ec75a0f /phpBB/phpbb/console/command/config/delete.php | |
parent | 52c452c768b30fa479e91faee548abf5038f2642 (diff) | |
download | forums-5d89c283f0dfbce0f615432671628d9d10736334.tar forums-5d89c283f0dfbce0f615432671628d9d10736334.tar.gz forums-5d89c283f0dfbce0f615432671628d9d10736334.tar.bz2 forums-5d89c283f0dfbce0f615432671628d9d10736334.tar.xz forums-5d89c283f0dfbce0f615432671628d9d10736334.zip |
[ticket/12039] Do not print success message when config did not exist
PHPBB3-12039
Diffstat (limited to 'phpBB/phpbb/console/command/config/delete.php')
-rw-r--r-- | phpBB/phpbb/console/command/config/delete.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/phpbb/console/command/config/delete.php b/phpBB/phpbb/console/command/config/delete.php index 5dbeeff20f..9a2d00561d 100644 --- a/phpBB/phpbb/console/command/config/delete.php +++ b/phpBB/phpbb/console/command/config/delete.php @@ -32,8 +32,15 @@ class delete extends command { $key = $input->getArgument('key'); - $this->config->delete($key); + if (isset($this->config[$key])) + { + $this->config->delete($key); - $output->writeln("<info>Successfully deleted config $key</info>"); + $output->writeln("<info>Successfully deleted config $key</info>"); + } + else + { + $output->writeln("<error>Config $key does not exist</error>"); + } } } |