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("Successfully deleted config $key");
+ $output->writeln("Successfully deleted config $key");
+ }
+ else
+ {
+ $output->writeln("Config $key does not exist");
+ }
}
}