diff options
-rw-r--r-- | settings/Controller/CheckSetupController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/Controller/CheckSetupController.php b/settings/Controller/CheckSetupController.php index 372a0a35e85..9b4dc1c0956 100644 --- a/settings/Controller/CheckSetupController.php +++ b/settings/Controller/CheckSetupController.php @@ -289,7 +289,7 @@ class CheckSetupController extends Controller { $trustedProxies = $this->config->getSystemValue('trusted_proxies', []); $remoteAddress = $this->request->getHeader('REMOTE_ADDR'); - if ($trustedProxies === [] && $this->request->getHeader('X-Forwarded-Host') !== '') { + if (empty($trustedProxies) && $this->request->getHeader('X-Forwarded-Host') !== '') { return false; } |