fix some upgrade issue

This commit is contained in:
xiaomlove
2026-01-31 00:08:23 +07:00
parent e12cd0fab9
commit 4e9e4ae143
6 changed files with 93 additions and 79 deletions

View File

@@ -2,11 +2,12 @@
namespace App\Filament\Resources\TorrentCustomFields\Pages;
use App\Filament\PageList;
use App\Filament\Resources\TorrentCustomFields\TorrentCustomFieldResource;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;
class ListTorrentCustomFields extends ListRecords
class ListTorrentCustomFields extends PageList
{
protected static string $resource = TorrentCustomFieldResource::class;

View File

@@ -21,7 +21,7 @@ class IpLog extends NexusModel
private function getIpLocation(string $ip)
{
$result = get_ip_location_from_geoip($ip);
$out = $result['name'];
$out = $result['name'] ?? '';
$suffix = [];
if (!empty($result['city_en'])) {
$suffix[] = $result['city_en'];