Skip to content

Commit

Permalink
🚧 lets try actual commas
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Nov 28, 2020
1 parent dff546f commit 0129b3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Guards/HumbleGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ public function ip()
*/
public function geoip()
{
if (is_array($this->ip())) {
$ip = $this->ip()[0];
if (strpos($this->ip(), ',') !== false) {
$ip = explode(', ', $this->ip())[0];
} else {
$ip = $this->ip();
}
Expand Down

0 comments on commit 0129b3b

Please sign in to comment.