mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12039] Do not print success message when config did not exist
PHPBB3-12039
This commit is contained in:
@@ -32,8 +32,15 @@ class delete extends command
|
|||||||
{
|
{
|
||||||
$key = $input->getArgument('key');
|
$key = $input->getArgument('key');
|
||||||
|
|
||||||
|
if (isset($this->config[$key]))
|
||||||
|
{
|
||||||
$this->config->delete($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>");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user