\XF\Repository\Ip::getSharedIpUsers
has an odd failure mode where shared ip tab for two users that should show each other do not reliably show each other on the shared IP list.This is because of a lack of order by clauses in the two queries:
PHP:
Код:
$recentIps = $db->fetchAllColumn("
SELECT DISTINCT ip
FROM xf_ip
WHERE user_id = ?
AND log_date > ?
LIMIT 500
", [$userId, $cutOff]);
Read more
Читать далее...