1
0
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:
Joas Schilling 2014-01-08 23:59:46 +01:00
parent 52c452c768
commit 5d89c283f0

View File

@ -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>");
}
}
}