From c7e8e6958b5b5603a9d82a7ef26cc2aca0c0408c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 7 Mar 2011 02:06:43 +0000 Subject: [PATCH] Fix: Error when cloning invoice with discount --- htdocs/compta/facture/class/facture.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index 933fe2c2fde..0dc76b1640b 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -294,7 +294,7 @@ class Facture extends CommonObject else { dol_syslog("There is ".sizeof($this->lines)." lines that are array lines"); - foreach ($this->lines as $i => $line) + foreach ($this->lines as $i => $val) { if (($this->lines[$i]->info_bits & 0x01) == 0) // We keep only lines with first bit = 0 {