Apparently isset can't be used on the result of an expression

This commit is contained in:
Ben Nottelling committed 2021-10-27 18:20:08 -07:00
1 parent 60f595aea9
commit dcdf39699d
1 file changed
+1 -1
+1 -1
View File
@@ -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 {