Fix: Error 500 on health.php and export button missing.

This commit is contained in:
Johnnybegood90
2026-03-15 01:50:35 +01:00
parent a81e33ccb8
commit 214a2b9cc5
4 changed files with 10 additions and 1 deletions
+3
View File
@@ -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'];
}