Commit 4d3c546afae9d08bab105da8e5f22cd9c4e2dc3a

Authored by Alex Savenko
2 parents be8e393e 0da410ae

Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/app/frontend/controllers/PageController.php
... ... @@ -906,6 +906,7 @@
906 906  
907 907 $discount = $this->models->getDiscount()->getActiveData();
908 908 if (!empty($discount)) {
  909 + $discount = $discount[0];
909 910 $discount['group_ids'] = str_replace('{', '', $discount['group_ids']);
910 911 $discount['group_ids'] = str_replace('}', '', $discount['group_ids']);
911 912 $discount['group_ids'] = explode(',', $discount['group_ids']);
... ...