Fixing style errors.

This commit is contained in:
stickler-ci 2019-11-01 14:37:21 +00:00
parent 0f80ba5353
commit bc5e6c867f

View File

@ -470,11 +470,11 @@ class Products extends DolibarrApi
if (! $result ) { if (! $result ) {
throw new RestException(404, 'Product not found'); throw new RestException(404, 'Product not found');
} }
if ($result > 0) { if ($result > 0) {
require_once DOL_DOCUMENT_ROOT . '/product/class/productcustomerprice.class.php'; require_once DOL_DOCUMENT_ROOT . '/product/class/productcustomerprice.class.php';
$prodcustprice = new Productcustomerprice($this->db); $prodcustprice = new Productcustomerprice($this->db);
$result = $prodcustprice->fetch_all('', '', 0, 0, array('t.fk_product' => $id)); $result = $prodcustprice->fetch_all('', '', 0, 0, array('t.fk_product' => $id));
} }
if ( empty($prodcustprice->lines)) { if ( empty($prodcustprice->lines)) {