mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
(systemhealth) don't generate crash report on empty or invalid rrd xml data
This commit is contained in:
parent
a35211fdef
commit
5e4a007307
@ -542,13 +542,11 @@ class SystemhealthController extends ApiControllerBase
|
||||
*/
|
||||
|
||||
$rrd_details=$this->getRRDdetails($rrd)["data"];
|
||||
|
||||
$xml = false;
|
||||
if ($rrd_details['filename'] != "") {
|
||||
$backend = new Backend();
|
||||
$response = $backend->configdpRun("systemhealth fetch ", array($rrd_details['filename']));
|
||||
$xml = simplexml_load_string($response); /* XXX can cause a crash report */
|
||||
} else {
|
||||
$xml = false;
|
||||
$xml = @simplexml_load_string($response);
|
||||
}
|
||||
|
||||
if ($xml !== false) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user