When displaying an order using:
If the product is deleted from the catalog the order returns a fatal error:
Fatal error: Uncaught Error: Call to a member function to_array() on boolean in /pathto/site-folder/kpanel/addons/apps/perch_shop/lib/PerchShop_Order.class.php:538 Stack trace: #0 /pathto/site-folder/kpanel/addons/apps/perch_shop/lib/PerchShop_Order.class.php(393): PerchShop_Order->format_invoice_for_template(Array) #1 /pathto/site-folder/kpanel/addons/apps/perch_shop/lib/PerchShop_Order.class.php(402): PerchShop_Order->get_for_template() #2 /pathto/site-folder/kpanel/addons/apps/perch_shop/lib/PerchShop_Runtime.class.php(765): PerchShop_Order->template(Array) #3 /pathto/site-folder/kpanel/addons/apps/perch_shop/runtime/orders.php(62): PerchShop_Runtime->get_order_items(Array) #4 /pathto/site-folder/kpanel/templates/pages/shop/account/orders.php(8): perch_shop_order('16', Ar in /pathto/site-folder/kpanel/addons/apps/perch_shop/lib/PerchShop_Order.class.php on line 538
Oddly the order information displays OK in the admin area, it just throws an error on the front end - obviously the customer will need to be able to reference historic orders, even for products that have since been deleted.
Can this be fixed?