From 7d00471432cebeb6759945508edf7c5cb26e24ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20=C4=8Cupi=C4=87?= Date: Fri, 10 Apr 2020 11:01:04 +0200 Subject: [PATCH] Fix extracting text for XML Text field on PHP 7.3.16+ --- lib/Core/FieldType/XmlText/Indexable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Core/FieldType/XmlText/Indexable.php b/lib/Core/FieldType/XmlText/Indexable.php index d5e8144a..3b31948d 100644 --- a/lib/Core/FieldType/XmlText/Indexable.php +++ b/lib/Core/FieldType/XmlText/Indexable.php @@ -56,7 +56,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); }