Commit bec32af42716d13b9c3cc34a6f6c4d8d91057de7
1 parent
3e019455
common
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
src/app/frontend/controllers/PageController.php
... | ... | @@ -1384,6 +1384,11 @@ |
1384 | 1384 | |
1385 | 1385 | //discount |
1386 | 1386 | $discount = $this->models->getDiscount()->getActiveData(); |
1387 | + if (!empty($discount)) { | |
1388 | + $discount = $discount[0]; | |
1389 | + } else { | |
1390 | + $discount = 0; | |
1391 | + } | |
1387 | 1392 | //vip |
1388 | 1393 | $users_group_id = $this->session->get('users_group_id'); |
1389 | 1394 | ... | ... |