Closed eisler closed 8 months ago
This is not a bug. Take a look at the items() function in phpsysinfo_bootstrap.js
function items(data) {
if (data !== undefined) {
if ((data.length > 0) && (data[0] !== undefined) && (data[0]["@attributes"] !== undefined)) {
return data;
} else if (data["@attributes"] !== undefined ) {
return [data];
} else {
return [];
}
} else {
return [];
}
}
It reads the data correctly.
Describe the bug If one Mount is found, a different structure is returned than if multiple Mounts are found.
To Reproduce $output = new WebpageXML(); $xmlString = $output->getXMLString();
Expected behavior the same structure for one or more mounts
Screenshots