Enforce types of commonly used variables in board

This commit is contained in:
Kijin Sung 2025-03-08 15:09:00 +09:00
parent 18d1ace121
commit ea1e0ef624
2 changed files with 8 additions and 9 deletions

View file

@ -1449,7 +1449,7 @@ class DocumentModel extends Document
$query_id = null;
$use_division = false;
$search_target = $searchOpt->search_target ?? null;
$search_keyword = trim($searchOpt->search_keyword ?? '') ?: null;
$search_keyword = strval($searchOpt->search_keyword ?? '') ?: null;
// search
if($search_target && $search_keyword)