Skip to content

Commit

Permalink
Merge branch '1.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Apr 10, 2020
2 parents a96de1e + 2dfaa7f commit 9a9ad62
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 9a9ad62

Please sign in to comment.