From 039ec2b22589e9e19558961b9be23aab0d79c4ce Mon Sep 17 00:00:00 2001 From: Christophe LATOUR Date: Thu, 16 Nov 2017 16:55:03 +0100 Subject: [PATCH] fix 500 : [Thu Nov 16 14:44:30.387531 2017] [:error] [pid 1123] [client 82.229.2.146:56843] exception 'ErrorException' with message 'Undefined offset: 1' in /home/www/bebeboutik.com/www/classes/PDF.php:552 --- classes/PDF.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/PDF.php b/classes/PDF.php index 22b126eb..88aa6771 100755 --- a/classes/PDF.php +++ b/classes/PDF.php @@ -549,7 +549,7 @@ class PDFCore extends PDF_PageGroupCore 'company' => trim($mr_point['MR_Selected_LgAdr1']), 'vat_number' => '', 'address1' => trim($address_lines[0]), - 'address2' => trim($address_lines[1]), + 'address2' => isset($address_lines[1]) ? trim($address_lines[1]) : '', 'postcode' => trim($mr_point['MR_Selected_CP']), 'city' => trim($mr_point['MR_Selected_Ville']), 'Country:name' => trim($mr_point['MR_Selected_Pays']),