From fc1a2d6a3008c39b99cb858a9cd36fc3180284e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 30 Oct 2020 17:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Core/Help.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/System/Core/Help.php b/System/Core/Help.php index 97465c6e..3d8d0dd3 100644 --- a/System/Core/Help.php +++ b/System/Core/Help.php @@ -44,6 +44,9 @@ class Help } if (!Xml::isXml($xml)) { $xml = JSON::decode($xml); + if ($xml === null) { + $xml = []; + } } return $xml; }