Skip to content

Commit

Permalink
Fixed strip_tags(): Passing null to parameter #1 in Fulltext.php (Ope…
Browse files Browse the repository at this point in the history
…nMage#3655)

* Fixed strip_tags(): Passing null to parameter #1 in Fulltext.php

* Preserve PHP7.4 return value.
  • Loading branch information
kiatng committed Nov 16, 2023
1 parent b6bb243 commit b64754d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ protected function _getAttributeValue($attributeId, $value, $storeId)
}
}

$value = preg_replace("#\s+#siu", ' ', trim(strip_tags($value)));
$value = $value === null ? '' : preg_replace("#\s+#siu", ' ', trim(strip_tags($value)));

return $value;
}
Expand Down

0 comments on commit b64754d

Please sign in to comment.