Skip to content

Commit

Permalink
Fix extracting text on PHP 7.3.16+
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Apr 10, 2020
1 parent 568d79f commit 2dfaa7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/FieldType/XmlText/SearchField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2dfaa7f

Please sign in to comment.