From 577ff9dd26bd2354e1f58cad0dd9252ee98df9bb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 10 Nov 2021 13:55:48 +0100 Subject: [PATCH] fix unrelated XML errors sometimes shown parsing eTemplates --- api/src/Etemplate/Widget.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Etemplate/Widget.php b/api/src/Etemplate/Widget.php index 35524bd8b3..ba144038dc 100644 --- a/api/src/Etemplate/Widget.php +++ b/api/src/Etemplate/Widget.php @@ -168,6 +168,7 @@ class Widget else { libxml_use_internal_errors(true); + libxml_clear_errors(); $reader = new XMLReader(); if (!$reader->XML($xml)) {