Skip to content

Commit

Permalink
Don't access config setting directly (matomo-org#14073)
Browse files Browse the repository at this point in the history
Likely shouldn't cause any issue the way it is but changing it just to be safe.
  • Loading branch information
tsteur authored and diosmosis committed Feb 5, 2019
1 parent c73613e commit 433afea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/Mail.php
Expand Up @@ -191,7 +191,9 @@ function sanitiseString($string)

private function shouldSendMail()
{
if (!Config::getInstance()->General['emails_enabled']) {
$config = Config::getInstance();
$general = $config->General;
if (empty($general['emails_enabled'])) {
return false;
}

Expand Down

0 comments on commit 433afea

Please sign in to comment.