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 5dceb66 commit 2c41f9dCopy full SHA for 2c41f9d
Model/IpToCountryRepository.php
@@ -91,8 +91,8 @@ public function __construct(
91
*/
92
public function getCountryCode($ip)
93
{
94
- if (!is_string($ip)) {
95
- return '';
+ if ((string)$ip && !isset($ip)) {
+ return false;
96
}
97
98
if (!isset($this->ipToCountry[$ip])) {
Model/IpToRegionRepository.php
@@ -81,7 +81,7 @@ public function __construct(
81
82
public function getRegionCode($ip)
83
84
85
return '';
86
87
0 commit comments