Fixing style errors.

This commit is contained in:
stickler-ci 2021-11-10 14:19:14 +00:00
parent 285bd67d90
commit 7c5810dee6

View File

@ -560,14 +560,13 @@ abstract class CommonDocGenerator
}
// Load product data optional fields to the line -> enables to use "line_options_{extrafield}"
if (isset($line->fk_product) && $line->fk_product > 0)
{
if (isset($line->fk_product) && $line->fk_product > 0) {
$tmpproduct = new Product($this->db);
$result = $tmpproduct->fetch($line->fk_product);
foreach($tmpproduct->array_options as $key=>$label)
foreach ($tmpproduct->array_options as $key=>$label)
$resarray["line_".$key] = $label;
}
return $resarray;
}