Skip to content

Commit

Permalink
Fix extracting text for XML Text field on PHP 7.3.16+
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyCupic authored and pspanja committed Apr 10, 2020
1 parent 22c453c commit 7d00471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Core/FieldType/XmlText/Indexable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7d00471

Please sign in to comment.