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 {