Fixing style errors.

This commit is contained in:
stickler-ci 2022-12-22 13:52:39 +00:00
parent 2a68836375
commit 56d05c09b2

View File

@ -1103,9 +1103,9 @@ class FormSetupItem
$out.= $this->langs->trans("NorProspectNorCustomer"); $out.= $this->langs->trans("NorProspectNorCustomer");
} }
} elseif ($this->type == 'product') { } elseif ($this->type == 'product') {
if (!class_exists("Product")){ if (!class_exists("Product")) {
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php'; require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
} }
$product = new Product($this->db); $product = new Product($this->db);
$resprod = $product->fetch($this->fieldValue); $resprod = $product->fetch($this->fieldValue);
if ($resprod > 0) { if ($resprod > 0) {