Fixed Pollin provider exception, if product top features panel does not exist

This commit is contained in:
Jan Böhmer 2025-03-23 19:43:28 +01:00
parent 63e222ed40
commit f5c17bc7c8

View file

@ -215,7 +215,7 @@ class PollinProvider implements InfoProviderInterface
private function parseNotes(Crawler $dom): string private function parseNotes(Crawler $dom): string
{ {
//Concat product highlights and product description //Concat product highlights and product description
return $dom->filter('div.product-detail-top-features')->html() . '<br><br>' . $dom->filter('div.product-detail-description-text')->html(); return $dom->filter('div.product-detail-top-features')->html('') . '<br><br>' . $dom->filter('div.product-detail-description-text')->html('');
} }
private function parsePrices(Crawler $dom): array private function parsePrices(Crawler $dom): array