add clear
This commit is contained in:
+2
-2
@@ -41,8 +41,8 @@ class Help extends Miniprogarampage
|
||||
if (is_array($json)) {
|
||||
return $json;
|
||||
}
|
||||
if (!static::isXml($json)) {
|
||||
return $json;
|
||||
if (!static::isXml($xml)) {
|
||||
return $xml;
|
||||
}
|
||||
$data = simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA);
|
||||
if (is_array($data)) {
|
||||
|
||||
Reference in New Issue
Block a user