Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-02-05 08:46:38 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-02-05 08:46:38 +0300
commit433afeafcfe7cb29f7d4747f8fcf14a05da753f0 (patch)
treef1b1420d31c7b4e3597626e47d20ec3151e94ccc /core/Mail.php
parentc73613ef94651b9d5a6f74f65079b43eeb6ed744 (diff)
Don't access config setting directly (#14073)
Likely shouldn't cause any issue the way it is but changing it just to be safe.
Diffstat (limited to 'core/Mail.php')
-rw-r--r--core/Mail.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Mail.php b/core/Mail.php
index 42f7312832..da2e9b77d8 100644
--- a/core/Mail.php
+++ b/core/Mail.php
@@ -191,7 +191,9 @@ class Mail extends Zend_Mail
private function shouldSendMail()
{
- if (!Config::getInstance()->General['emails_enabled']) {
+ $config = Config::getInstance();
+ $general = $config->General;
+ if (empty($general['emails_enabled'])) {
return false;
}