From 2dfaa7f34a75673cc15f98a98dbf6ad687dcd3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Fri, 10 Apr 2020 10:53:26 +0200 Subject: [PATCH] Fix extracting text on PHP 7.3.16+ --- lib/FieldType/XmlText/SearchField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/FieldType/XmlText/SearchField.php b/lib/FieldType/XmlText/SearchField.php index 4b17189e..babc3b79 100644 --- a/lib/FieldType/XmlText/SearchField.php +++ b/lib/FieldType/XmlText/SearchField.php @@ -60,7 +60,7 @@ private function extractText(DOMNode $node) { $text = ''; - if ($node->childNodes) { + if ($node->childNodes !== null && $node->childNodes->length > 0) { foreach ($node->childNodes as $child) { $text .= $this->extractText($child); }