diff --git a/src/Utils/Settings.php b/src/Utils/Settings.php index d012819a..180d5b5a 100644 --- a/src/Utils/Settings.php +++ b/src/Utils/Settings.php @@ -83,8 +83,7 @@ public static function setHost(): void { $host = $_SERVER['HTTP_HOST'] ?? ''; // phpcs:enable - if ( ! $port || ( '80' !== $port && '443' !== $port ) - || '' === $host || 'localhost' === $host || '127.0.01' === $host ) { + if ( ! $port || ! $host || '' === $host || 'localhost' === $host || '127.0.01' === $host ) { self::$host = 'localhost'; return; }