From b940f2eae343742e8940c5cd06dd7938e50a4ee9 Mon Sep 17 00:00:00 2001 From: Vincent Maury Date: Sat, 28 Jun 2025 17:34:12 +0200 Subject: [PATCH] Fix bug in product->get_sousproduits_arbo (#34561) * Update product.class.php depending on php version used, when var $this->sousprods not correctly declared it'snot filled * Update product.class.php sousprods prop now initialized when declared --------- Co-authored-by: Laurent Destailleur --- htdocs/product/class/product.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 7f8de67a96a..b7647340ee9 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -496,7 +496,7 @@ class Product extends CommonObject * * @var array */ - public $sousprods; + public $sousprods = array(); /** * Path of subproducts. Build from ->sousprods with get_arbo_each_prod()