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