Update OTS_Account.php

This commit is contained in:
slawkens 2025-02-26 16:16:45 +01:00
parent 887b5068ad
commit 464492d826

View File

@ -1011,7 +1011,7 @@ class OTS_Account extends OTS_Row_DAO implements IteratorAggregate, Countable
public function logAction($action) public function logAction($action)
{ {
$ip = get_browser_real_ip(); $ip = get_browser_real_ip();
if(strpos($ip, ":") === false) { if(!str_contains($ip, ":")) {
$ipv6 = '0'; $ipv6 = '0';
} }
else { else {