aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/console/command/config
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/console/command/config')
-rw-r--r--phpBB/phpbb/console/command/config/delete.php11
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>");
+ }
}
}