From f2e7dfad40dd6cd493efa60fc9d1017cd996d972 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 19 Mar 2024 22:10:25 +0100 Subject: [PATCH] Fix arg type to trim() with cast --- .../stock/stocktransfer/class/stocktransferline.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php index b030daca098..ac930e58b94 100644 --- a/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php +++ b/htdocs/product/stock/stocktransfer/class/stocktransferline.class.php @@ -429,8 +429,8 @@ class StockTransferLine extends CommonObjectLine $p->fetch($this->fk_product); $op = array(); - $op[0] = "+".trim($this->qty); - $op[1] = "-".trim($this->qty); + $op[0] = "+".trim((string) $this->qty); + $op[1] = "-".trim((string) $this->qty); $movementstock = new MouvementStock($this->db); $st = new StockTransfer($this->db); $movementstock->origin_type = $st->origin_type;