fix: 修复订阅过滤功能在某些情况下报错的问题

This commit is contained in:
xboard 2024-04-30 11:02:21 +08:00
parent f9c12d7bd8
commit 42d2df07a7

View File

@ -84,7 +84,7 @@ class ClientController extends Controller
$rejectFlag = true; $rejectFlag = true;
foreach($filterArr as $filter){ foreach($filterArr as $filter){
if(stripos($server['name'],$filter) !== false if(stripos($server['name'],$filter) !== false
|| in_array($filter, $server['tags']) || in_array($filter, $server['tags'] ?? [])
) $rejectFlag = false; ) $rejectFlag = false;
} }
if($rejectFlag) return true; if($rejectFlag) return true;