From 3933a23ad7e65ae0aa9e63009cce501b900bccd6 Mon Sep 17 00:00:00 2001
From: Luffy <52o@qq52o.cn>
Date: Mon, 26 Feb 2024 11:52:17 +0800
Subject: [PATCH] Fix assign null to property Widget\Archive::$archiveKeywords
(#1738)
* Fix assign null to property Widget\Archive::$archiveKeywords
* Fix
---
var/Widget/Archive.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/var/Widget/Archive.php b/var/Widget/Archive.php
index 2620f927bc..3b1e726e89 100644
--- a/var/Widget/Archive.php
+++ b/var/Widget/Archive.php
@@ -114,14 +114,14 @@ class Archive extends Contents
/**
* 本页关键字
*
- * @var string
+ * @var string|null
*/
- private string $archiveKeywords;
+ private ?string $archiveKeywords = null;
/**
* 本页描述
*
- * @var string
+ * @var string|null
*/
private ?string $archiveDescription = null;
@@ -1023,7 +1023,7 @@ public function header(?string $rule = null)
$header .= '' . "\n";
$header .= '' . "\n";
+ . htmlspecialchars($this->archiveDescription ?? ($this->options->description ?? '')) . '" />' . "\n";
$header .= '' . "\n";
$header .= '' . "\n";
$header .= '' . "\n";