add clear
This commit is contained in:
@@ -32,6 +32,9 @@ class Help extends Miniprogarampage
|
||||
*/
|
||||
public static function toArray($xml)
|
||||
{
|
||||
if (is_array($xml)) {
|
||||
return $xml;
|
||||
}
|
||||
if (!is_null($json = json_decode($xml, TRUE))) {
|
||||
return $json;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user