Fix: Error 500 on health.php and export button missing.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user