fix on article based on old merchandise

This commit is contained in:
Ludovic CANDELLIER
2023-03-27 21:05:37 +02:00
parent ba8f87cff4
commit 6e4f93dd65
3 changed files with 8 additions and 3 deletions

View File

@@ -321,7 +321,7 @@ class Articles
];
break;
}
return $data;
return $data ?? false;
}
public static function getInheritedImagesByProduct($product_id, $product_type)
@@ -337,7 +337,7 @@ class Articles
$data['images'] = Merchandises::getImages($product_id);
break;
}
return $data;
return $data ?? false;
}
public static function getMeta(&$data = [])