Showing
1 changed file
with
1 additions
and
1 deletions
@@ -340,7 +340,7 @@ class SearchController extends AbstractAction | @@ -340,7 +340,7 @@ class SearchController extends AbstractAction | ||
340 | // $data = Product\ListModel::getClassData($condition); | 340 | // $data = Product\ListModel::getClassData($condition); |
341 | 341 | ||
342 | // 产品吴婷要求这么做,目的是保持性别中的所有性别和当前频道性别一致 | 342 | // 产品吴婷要求这么做,目的是保持性别中的所有性别和当前频道性别一致 |
343 | - if ($condition['gender'] === '1,2,3') { | 343 | + if (isset($condition['gender']) && $condition['gender'] === '1,2,3') { |
344 | switch ($condition['channel']) { | 344 | switch ($condition['channel']) { |
345 | case 1: | 345 | case 1: |
346 | $condition['gender'] = '1,3'; | 346 | $condition['gender'] = '1,3'; |
-
Please register or login to post a comment