php 8.1 deprecated null parameters fixed.
[fa-stable.git] / reporting / rep103.php
index 271d6818c8453e8b8943c4c0d4a7f2dbcc41d525..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