This commit is contained in:
joyqi 2022-04-04 00:01:33 +08:00
parent c78f7fda68
commit 34e5bf2861

View File

@ -482,7 +482,7 @@ EOF;
*/
public static function filterSearchQuery(?string $query): string
{
return isset($query) ? str_replace('-', ' ', self::slugName($query)) : '';
return isset($query) ? str_replace('-', ' ', self::slugName($query) ?? '') : '';
}
/**