Usunięcie plików .DS_Store oraz poprawa obsługi kuponów w klasach ShopOrder i Coupon

This commit is contained in:
2025-03-12 08:05:26 +01:00
parent af3d46b3d6
commit 459ffbecd2
7 changed files with 5 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ class ShopOrder
public static function order_details()
{
$order = new \shop\Order( (int)\S::get( 'order_id' ) );
$coupon = new \shop\Coupon( $order -> coupon_id );
$coupon = $order -> coupon_id ? new \shop\Coupon( $order -> coupon_id ) : null;
return \Tpl::view( 'shop-order/order-details', [
'order' => $order,