mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
[ticket/12039] Do not print success message when config did not exist
PHPBB3-12039
This commit is contained in:
parent
52c452c768
commit
5d89c283f0
@ -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>");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user