From b25b946e8da73abb036ee2a460b2d8ed18f95b92 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Fri, 27 Oct 2017 16:01:48 +0200 Subject: [PATCH] fix when i++ not set --- classes/PDF.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/PDF.php b/classes/PDF.php index 2c3c614e..b8f69f1b 100755 --- a/classes/PDF.php +++ b/classes/PDF.php @@ -1180,8 +1180,8 @@ class PDFCore extends PDF_PageGroupCore } $this->Cell($w[++$i], $lineSize, (int)($product['customizationQuantityTotal']), 'B', 0, 'C'); - if (!$delivery) { - $this->Cell($w[++$i], $lineSize, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice($unit_price * (int)($product['customizationQuantityTotal']), self::$currency, true)), 'B', 0, 'R'); + if (!$delivery && isset($w[++$i])) { + $this->Cell($w[$i], $lineSize, (self::$orderSlip ? '-' : '').self::convertSign(Tools::displayPrice($unit_price * (int)($product['customizationQuantityTotal']), self::$currency, true)), 'B', 0, 'R'); } $this->Ln();