diff --git a/src/GeoIP.php b/src/GeoIP.php index f26caef..eada853 100644 --- a/src/GeoIP.php +++ b/src/GeoIP.php @@ -536,5 +536,5 @@ function GeoIP_countryOfRequest($request, $geoipdb) $gi = GeoIP_open($geoipdb, GEOIP_STANDARD); $code = GeoIP_country_code_by_addr($gi, $request->remote_addr); GeoIP_close($gi); - return ($code !== false) ? $code : 'ZZ'; + return ($code != false) ? $code : 'ZZ'; } \ No newline at end of file