Showing
1 changed file
with
3 additions
and
1 deletions
@@ -52,7 +52,9 @@ class SearchController extends AbstractAction | @@ -52,7 +52,9 @@ class SearchController extends AbstractAction | ||
52 | 'discount' => FILTER_DEFAULT, | 52 | 'discount' => FILTER_DEFAULT, |
53 | 'gender' => FILTER_DEFAULT, | 53 | 'gender' => FILTER_DEFAULT, |
54 | 'p_d' => FILTER_DEFAULT,), false); | 54 | 'p_d' => FILTER_DEFAULT,), false); |
55 | - $condition['shopId'] = $condition['shop_id']; | 55 | + if (isset($condition['shop_id'])) { |
56 | + $condition['shopId'] = $condition['shop_id']; | ||
57 | + } | ||
56 | $query = empty($condition['query']) ? null : strtolower(trim($condition['query'])); | 58 | $query = empty($condition['query']) ? null : strtolower(trim($condition['query'])); |
57 | if (isset($condition['discount'])) { | 59 | if (isset($condition['discount'])) { |
58 | $condition['p_d'] = rawurldecode($condition['discount']); | 60 | $condition['p_d'] = rawurldecode($condition['discount']); |
-
Please register or login to post a comment