continue;
}
$r[$reference] = $data;
- $title = trim(trim($data['Catégorie']) . ' ' . trim($data['RBU']));
- $subtitle = trim(trim($data['Age Group']) . ' - ' . trim($data['Product Line']), '- ');
+ $title = trim(trim($data['Catégorie']??'') . ' ' . trim($data['RBU']??''));
+ $subtitle = trim(trim($data['Age Group']??'') . ' - ' . trim($data['Product Line']??''), '- ');
$key = md5($title . $subtitle);
if (!isset($planches[$key])) {
$planches[$key] = ['class' => $data['Catégorie'], 'title' => $title, 'subtitle' => $subtitle, 'products' => []];
$html .= '<img src="' . Files::asDataURI($f) . '">';
$html .= '<div class="infos">';
$html .= '<h3>' . $reference . '</h3>';
- $html .= '<div>' . $product['Désignation'] . '</div>';
- $html .= '<div>' . $product['Color Name'] . '</div>';
- $html .= '<div>PA : ' . number_format(floatval($product['Tarif']), 2, ',', ' ') . ' € / PVP : ' . number_format(floatval($product['PVC']), 2, ',', ' ') . ' €</div>';
+ $html .= '<div>' . $product['Désignation']??'' . '</div>';
+ $html .= '<div>' . $product['Color Name']??''. '</div>';
+ $html .= '<div>PA : ' . number_format(floatval($product['Tarif']??0), 2, ',', ' ') . ' € / PVP : ' . number_format(floatval($product['PVC']??0), 2, ',', ' ') . ' €</div>';
$html .= '</div>';
$html .= '</article>';
}