From 74940410055f9f54a2310fc325b38a5e7440da0a Mon Sep 17 00:00:00 2001 From: xiaomlove <1939737565@qq.com> Date: Thu, 15 Jan 2026 23:24:28 +0700 Subject: [PATCH] fix get_ip_location_from_geoip() missing continent_en --- include/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index fa52b0cb..667c4ebf 100644 --- a/include/functions.php +++ b/include/functions.php @@ -5885,6 +5885,7 @@ function get_ip_location_from_geoip($ip): bool|array 'city' => '', 'country_en' => '', 'city_en' => '', + 'continent_en' => '', ]; try { $database = nexus_env('GEOIP2_DATABASE'); @@ -5913,7 +5914,7 @@ function get_ip_location_from_geoip($ip): bool|array $info['continent'] = $continentName; $info['continent_en'] = $record->continent->names['en'] ?? ''; } catch (\Exception $exception) { - do_log($exception->getMessage()); + do_log($exception->getMessage() . ", trace: " . $exception->getTraceAsString(), 'error'); } return $info; });