There was an error while loading. Please reload this page.
1 parent 9e825f9 commit 5dceb66Copy full SHA for 5dceb66
Model/IpToCountryRepository.php
@@ -91,6 +91,10 @@ public function __construct(
91
*/
92
public function getCountryCode($ip)
93
{
94
+ if (!is_string($ip)) {
95
+ return '';
96
+ }
97
+
98
if (!isset($this->ipToCountry[$ip])) {
99
$this->ipToCountry[$ip] = false;
100
Model/IpToRegionRepository.php
@@ -81,6 +81,10 @@ public function __construct(
81
82
public function getRegionCode($ip)
83
84
85
86
87
88
if (!isset($this->ipToRegion[$ip])) {
89
$this->ipToRegion[$ip] = '';
90
0 commit comments