This commit is contained in:
DariusIII
2025-06-06 16:45:34 +02:00
parent 4ee18a9cf5
commit 9a57093b97
@@ -57,7 +57,7 @@ class AdminUserController extends BasePageController
// Add country data to each user based on their host IP
foreach ($results as $user) {
$position = null;
if (!empty($user->host) && filter_var($user->host, FILTER_VALIDATE_IP)) {
if (! empty($user->host) && filter_var($user->host, FILTER_VALIDATE_IP)) {
$position = Location::get($user->host);
}
$user->country_name = $position ? $position->countryName : null;