diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-02-05 08:46:38 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-02-05 08:46:38 +0300 |
commit | 433afeafcfe7cb29f7d4747f8fcf14a05da753f0 (patch) | |
tree | f1b1420d31c7b4e3597626e47d20ec3151e94ccc /core/Mail.php | |
parent | c73613ef94651b9d5a6f74f65079b43eeb6ed744 (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.php | 4 |
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; } |