Skip to content

Commit

Permalink
Do only poll from config if indeed a global config exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
discordier committed Apr 2, 2014
1 parent da49429 commit 0b256ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/CyberSpectrum/Command/CommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ protected function getConfigValue($name)
{
/** @var JsonConfig $config */
$config = $this->getApplication()->getConfig();
$value = $config->getConfigValue($name);
if ($config !== null)
{
$value = $config->getConfigValue($name);
}
}

return $value;
Expand Down

0 comments on commit 0b256ef

Please sign in to comment.