[0000168] Undefined variable: paylink in file rep110.php
[fa-stable.git] / reporting / includes / pdf_report.inc
index af7ba6cc6f51dafae4c98be5d0a317e34a2a36e7..67d23e84cbdca7ce6792646925b5ff888f1ceb96 100644 (file)
@@ -266,7 +266,7 @@ class FrontReport extends Cpdf
 
        function Header2($myrow, $branch, $sales_order, $bankaccount, $doctype)
        {
-               global $comp_path, $path_to_root, $print_as_quote, $print_invoice_no;
+               global $comp_path, $path_to_root, $print_as_quote, $print_invoice_no, $packing_slip;
 
                $this->pageNumber++;
                if ($this->pageNumber > 1)
@@ -432,7 +432,7 @@ class FrontReport extends Cpdf
                                require_once($path_to_root . "/reporting/includes/class.mail.inc");
                        $mail = new email($this->company['coy_name'], $this->company['email']);
                                if (!isset($myrow['email']) || $myrow['email'] == '') 
-                                       $myrow['email'] = $myrow['contact_email'];
+                                       $myrow['email'] = isset($myrow['contact_email']) ? $myrow['contact_email'] : '';
                        $to = $myrow['DebtorName'] . " <" . $myrow['email'] . ">";
                        $msg = $doc_Dear_Sirs . " " . $myrow['DebtorName'] . ",\n\n" . $doc_AttachedFile . " " . $subject .
                                "\n\n";