Skip to content

Commit b64754d

Browse files
authored
Fixed strip_tags(): Passing null to parameter #1 in Fulltext.php (OpenMage#3655)
* Fixed strip_tags(): Passing null to parameter #1 in Fulltext.php * Preserve PHP7.4 return value.
1 parent b6bb243 commit b64754d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/CatalogSearch/Model/Resource/Fulltext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ protected function _getAttributeValue($attributeId, $value, $storeId)
761761
}
762762
}
763763

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

766766
return $value;
767767
}

0 commit comments

Comments
 (0)