From dcdf39699d42e9bd40898c9bd58257d0454dfb8b Mon Sep 17 00:00:00 2001 From: Ben Nottelling Date: Wed, 27 Oct 2021 18:20:08 -0700 Subject: [PATCH] Apparently isset can't be used on the result of an expression --- src/bb-library/Box/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bb-library/Box/Request.php b/src/bb-library/Box/Request.php index da7292f78..273fca704 100644 --- a/src/bb-library/Box/Request.php +++ b/src/bb-library/Box/Request.php @@ -258,7 +258,7 @@ class Box_Request implements \Box\InjectionAwareInterface $address = null; if ($trustForwardedHeader) { // Check to see if the CF-Connecting-IP (Cloudflare) header exists. - if (isset($this->getServer("HTTP_CF_CONNECTING_IP"))) { + if (!empty($this->getServer("HTTP_CF_CONNECTING_IP"))) { // If it does, assume that BoxBilling is behind Cloudflare. $address = $this->getServer("HTTP_CF_CONNECTING_IP"); } else {