diff options
author | sgiehl <stefan@matomo.org> | 2021-11-28 23:08:53 +0300 |
---|---|---|
committer | sgiehl <stefan@matomo.org> | 2021-11-28 23:08:53 +0300 |
commit | cc6d43afd23cb57785be040ee914c7661cb3e3a4 (patch) | |
tree | fdff2b68aa227f811e1b48cc551ecab8490b4174 /plugins/CoreAdminHome | |
parent | f3bdbb83594c50e5629b867330000fb21fdde0f0 (diff) |
fix incorrect condition introduced in #18387
Diffstat (limited to 'plugins/CoreAdminHome')
-rw-r--r-- | plugins/CoreAdminHome/Controller.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreAdminHome/Controller.php b/plugins/CoreAdminHome/Controller.php index c9bff22223..cdc2baafbd 100644 --- a/plugins/CoreAdminHome/Controller.php +++ b/plugins/CoreAdminHome/Controller.php @@ -160,7 +160,7 @@ class Controller extends ControllerAdmin $mail['username'] = Common::unsanitizeInputValue(Common::getRequestVar('mailUsername', '')); $mail['password'] = Common::unsanitizeInputValue(Common::getRequestVar('mailPassword', '')); - if (!array_key_exists('mailPassword', $_POST) && Config::getInstance()->mail['password'] !== $mail['host']) { + if (!array_key_exists('mailPassword', $_POST) && Config::getInstance()->mail['host'] === $mail['host']) { // use old password if it wasn't set in request (and the host wasn't changed) $mail['password'] = Config::getInstance()->mail['password']; } |