php V8 warning
This commit is contained in:
parent
8cb1e138de
commit
3e8cb1de57
@ -491,10 +491,10 @@ class ProductCombination
|
||||
$child->price_autogen = $parent->price_autogen;
|
||||
$child->weight = $parent->weight;
|
||||
// Only when Parent Status are updated
|
||||
if ($parent->oldcopy && ($parent->status != $parent->oldcopy->status)) {
|
||||
if (!empty($parent->oldcopy) && ($parent->status != $parent->oldcopy->status)) {
|
||||
$child->status = $parent->status;
|
||||
}
|
||||
if ($parent->oldcopy && ($parent->status_buy != $parent->oldcopy->status_buy)) {
|
||||
if (!empty($parent->oldcopy) && ($parent->status_buy != $parent->oldcopy->status_buy)) {
|
||||
$child->status_buy = $parent->status_buy;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user