Fix: Error 500 on health.php and export button missing.
This commit is contained in:
@@ -14,6 +14,9 @@ function health_status_label(bool $ok): string {
|
||||
}
|
||||
|
||||
function health_parse_xmltv(string $xml): array {
|
||||
if (!class_exists('DOMDocument')) {
|
||||
return ['ok' => false, 'error' => 'PHP DOM/XML extension is not installed.'];
|
||||
}
|
||||
if ($xml === '') {
|
||||
return ['ok' => false, 'error' => 'Empty response'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user