From 072eb740c713bef7210a5474409b274a175f6a22 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 30 Apr 2017 13:57:13 +0200 Subject: [PATCH] Fix php compatibility --- htdocs/product/inventory/card.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/product/inventory/card.php b/htdocs/product/inventory/card.php index f7e4cbecb0a..026bd37e743 100644 --- a/htdocs/product/inventory/card.php +++ b/htdocs/product/inventory/card.php @@ -463,7 +463,8 @@ function card_line(&$inventory, &$lines, $mode) if(!empty($TCacheEntrepot[$Inventorydet->fk_warehouse])) $e = $TCacheEntrepot[$Inventorydet->fk_warehouse]; elseif($e->fetch($Inventorydet->fk_warehouse) > 0) $TCacheEntrepot[$e->id] = $e; - $qty = (float)GETPOST('qty_to_add')[$k]; + $qtytoadd = GETPOST('qty_to_add', 'array'); + $qty = (float) $qtytoadd[$k]; $lines[]=array( 'produit' => $product->getNomUrl(1).' - '.$product->label,