lat9 / edit_orders

Edit Orders: Updates for continued operation on Zen Cart v1.5.8 and later
GNU General Public License v2.0
5 stars 9 forks source link

PHP notices generated if no tax-groups #142

Closed lat9 closed 4 years ago

lat9 commented 4 years ago

If an order has no tax groups, EO's debug-log generation is throwing a couple of PHP notices for that missing content, e.g.

[13-Oct-2019 08:41:55 America/Chicago] Request URI: /myadmin/edit_orders.php?oID=237&action=edit, IP address: redacted
#1 editOrders->eoFormatTaxInfoForLog() called at [/home/mystore/public_html/myadmin/includes/classes/editOrders.php:73]
#2 editOrders->getOrderInfo() called at [/home/mystore/public_html/myadmin/edit_orders.php:791]
--> PHP Notice: Undefined index: tax_groups in /home/mystore/public_html/myadmin/includes/classes/editOrders.php on line 447.
[13-Oct-2019 08:41:55 America/Chicago] Request URI: /myadmin/edit_orders.php?oID=237&action=edit, IP address: redacted
#1 editOrders->eoFormatTaxInfoForLog() called at [/home/mystore/public_html/myadmin/includes/classes/editOrders.php:73]
#2 editOrders->getOrderInfo() called at [/home/mystore/public_html/myadmin/edit_orders.php:791]
--> PHP Notice: Undefined index: tax_groups in /home/mystore/public_html/myadmin/includes/classes/editOrders.php on line 447.