Skip to content

Commit 1f750e2

Browse files
committed
Fix detectAndClean method
Thanks @nikosdion for the hint in joomla/joomla-cms#34365
1 parent 1611ee6 commit 1f750e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IpHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ protected static function detectAndCleanIP()
447447

448448
while (empty($ip) && !empty($ips))
449449
{
450-
$ip = array_pop($ips);
450+
$ip = array_shift($ips);
451451
$ip = trim($ip);
452452
}
453453
}

0 commit comments

Comments
 (0)