php V8 warning

This commit is contained in:
This Charlène 2022-07-20 11:31:20 +02:00 committed by GitHub
parent 8cb1e138de
commit 3e8cb1de57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}