// 2008-06-16. Added customer's reference
$this->NewLine();
$this->Text($ccol, $doc_Customers_Ref, $ccol2);
- if ($sales_order != NULL)
+ if (isset($sales_order["customer_ref"]))
$this->Text($ccol2, $sales_order["customer_ref"], $mcol);
$locale = $path_to_root . "lang/" . $_SESSION['language']->code . "/locale.inc";
if (file_exists($locale))
if (isset($bankaccount['bank_name']))
$this->Text($mcol, $bankaccount['bank_name'], $mcol2);
$this->NewLine();
- $this->TextWrapLines($mcol, $mcol2 - $mcol, $bankaccount['bank_address']);
+ if (isset($bankaccount['bank_address']))
+ $this->TextWrapLines($mcol, $mcol2 - $mcol, $bankaccount['bank_address']);
$this->row = $adrline;
if (isset($bankaccount['bank_account_name']))
$this->Text($mcol2, $bankaccount['bank_account_name']);