diff --git a/src/app/frontend/views/page/item.php b/src/app/frontend/views/page/item.php
index c9b2ea9..ccc3f3c 100644
--- a/src/app/frontend/views/page/item.php
+++ b/src/app/frontend/views/page/item.php
@@ -203,8 +203,10 @@
-
0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) {
- echo ''.number_format($item['price2']*(1-$discount['discount']/100), 2, '.', ' ').' грнUAH';
+ if (!empty($discount)) {
+ if (isset($discount) && $discount['discount'] > 0 && $discount['discount'] <= 100 && in_array($item['id'], $discount['group_ids'])) {
+ echo ''.number_format($item['price2']*(1-$discount['discount']/100), 2, '.', ' ').' грнUAH';
+ }
}
else {
echo ''.number_format($item['price2'], 2, '.', ' ').' грнUAH';
--
libgit2 0.21.4