try fixing an other case where an unrelated XML error was reported

Error passing XML file '<text type="text" id="#Kunde_Firma"/>' line 12: EndTag: '</' not found
There is obviously no line 12 ;)
This commit is contained in:
Ralf Becker 2021-11-11 09:49:31 +01:00
parent a2f361f521
commit bbd048a143

View File

@ -123,6 +123,7 @@ class Widget
// read all attributes // read all attributes
$this->set_attrs($reader); $this->set_attrs($reader);
libxml_clear_errors();
while(($ok=$reader->read()) && $reader->depth > $depth) while(($ok=$reader->read()) && $reader->depth > $depth)
{ {
if ($reader->nodeType == XMLReader::ELEMENT && $reader->depth > $depth) if ($reader->nodeType == XMLReader::ELEMENT && $reader->depth > $depth)