Fix: Opening brace should be on a new line
This commit is contained in:
parent
ab55ff2e2c
commit
0976616401
@ -3498,7 +3498,8 @@ class Product extends CommonObject
|
|||||||
*
|
*
|
||||||
* @return int Number of variants
|
* @return int Number of variants
|
||||||
*/
|
*/
|
||||||
function hasVariants() {
|
function hasVariants()
|
||||||
|
{
|
||||||
$nb = 0;
|
$nb = 0;
|
||||||
$sql = "SELECT count(rowid) as nb FROM ".MAIN_DB_PREFIX."product_attribute_combination WHERE fk_product_parent = ".$this->id;
|
$sql = "SELECT count(rowid) as nb FROM ".MAIN_DB_PREFIX."product_attribute_combination WHERE fk_product_parent = ".$this->id;
|
||||||
$sql.= " AND entity IN (".getEntity('product').")";
|
$sql.= " AND entity IN (".getEntity('product').")";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user