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']),