diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 07557dca..b66e5481 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -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) ?? '') : ''; } /**