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
@@ -6,6 +6,9 @@ gridtv_require_admin($config, 'Export');
[$locale, $L] = gridtv_load_locale($config);
function export_parse_xmltv_programmes(string $xml, string $target_day): array {
if (!class_exists('DOMDocument')) {
return ['channels' => [], 'programmes' => [], 'error' => 'PHP DOM/XML extension is not installed'];
}
libxml_use_internal_errors(true);
$dom = new DOMDocument();
if (!$dom->loadXML($xml, LIBXML_NOERROR | LIBXML_NOWARNING)) {