We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1035d37 commit df1dd35Copy full SHA for df1dd35
src/Libraries/Core/GeoIP.php
@@ -19,7 +19,7 @@ private function __construct() {}
19
public static function getCountryISOCode(?string $address = null): ?string
20
{
21
$ip = $address ?? '';
22
- if (empty($ip)) $ip = \getenv('REMOTE_ADDR');
+ if (empty($ip)) $ip = \getenv('REMOTE_ADDR') ?? '';
23
24
$record = self::getRecord($ip);
25
if (!$record) return null;
0 commit comments