Update card.php

This commit is contained in:
Laurent Destailleur 2021-10-06 15:30:19 +02:00 committed by GitHub
parent 6d00097c89
commit 10f0434116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -981,8 +981,10 @@ if (empty($reshook))
$num = count($lines);
for ($i = 0; $i < $num; $i++) // TODO handle subprice < 0
{
if (!in_array($lines[$i]->id, $selectedLines)) continue; // Skip unselected lines
if (!in_array($lines[$i]->id, $selectedLines)) {
continue; // Skip unselected lines
}
$desc = ($lines[$i]->desc ? $lines[$i]->desc : $lines[$i]->libelle);
$product_type = ($lines[$i]->product_type ? $lines[$i]->product_type : 0);