Commit b329165ebb65449d2e1558e635e39c6fb9380aa0
Merge branch 'discount' of gitlab.artweb.com.ua:Alex/semena
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/app/backend/controllers/DiscountController.php
@@ -222,7 +222,7 @@ class DiscountController extends Controller | @@ -222,7 +222,7 @@ class DiscountController extends Controller | ||
222 | 222 | ||
223 | $status = $this->models->getDiscount()->getStatus($id); | 223 | $status = $this->models->getDiscount()->getStatus($id); |
224 | 224 | ||
225 | - empty($status) ? $status = $status[0] : $status = 'Cannt get status'; | 225 | + isset($status) ? $status = $status[0] : $status = 'Cannt get status'; |
226 | 226 | ||
227 | if ($status == 1) { | 227 | if ($status == 1) { |
228 | 228 |