Authored by 郝肖肖

search gender 判断是否存在

@@ -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';