PHP 8 rerun of number_format fix.
[fa-stable.git] / reporting / rep103.php
index a93d56062c853ff8ff81a9a1dc818a2fae74de90..9c694becb7a623398a943fe6a8602957fcf64a33 100644 (file)
@@ -215,7 +215,7 @@ function print_customer_details_listing()
                        $rep->TextCol(1, 2,     _('Price List') . ": " . $myrow['sales_type']);
                        $rep->TextCol(2, 3,     $myrow['br_name']);
                        $rep->NewLine();
-                       $adr = Explode("\n", $myrow['address']);
+                       $adr = $myrow['address'] != NULL ? Explode("\n", $myrow['address']) : array();
                        if ($myrow['br_post_address'] == '')
                                $adr2 = Explode("\n", $myrow['br_address']);
                        else
@@ -255,7 +255,7 @@ function print_customer_details_listing()
                        {
                                $oldrow = $rep->row;
                                $rep->NewLine();
-                               $rep->TextColLines(1, 2, _("Gereral Notes:")." ".$myrow['notes'], -2);
+                               $rep->TextColLines(1, 2, _("General Notes:")." ".$myrow['notes'], -2);
                                $newrow = $rep->row;
                                $rep->row = $oldrow;
                        }