Browse Source

Fix: Missing initialized value

Laurent Destailleur 11 years ago
parent
commit
81ff0a8643
1 changed files with 1 additions and 0 deletions
  1. 1 0
      htdocs/product/class/product.class.php

+ 1 - 0
htdocs/product/class/product.class.php

@@ -2599,6 +2599,7 @@ class Product extends CommonObject
 	function load_stock()
 	{
 		$this->stock_reel = 0;
+		$this->stock_warehouse = array();
 
 		$sql = "SELECT ps.reel, ps.fk_entrepot, ps.pmp";
 		$sql.= " FROM ".MAIN_DB_PREFIX."product_stock as ps";