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

@@ -145,7 +145,7 @@ class ShopOrder
$order = \front\factory\ShopOrder::order_details(
\front\factory\ShopOrder::order_id( \S::get( 'order_hash' ) )
);
$coupon = new \shop\Coupon( $order['coupon_id'] );
$coupon = (int)$order['coupon_id'] ? new \shop\Coupon( (int)$order['coupon_id'] ) : null;
return \Tpl::view( 'shop-order/order-details', [
'order' => $order,