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();