Authored by 郝肖肖

search gender 判断是否存在

... ... @@ -340,7 +340,7 @@ class SearchController extends AbstractAction
// $data = Product\ListModel::getClassData($condition);
// 产品吴婷要求这么做,目的是保持性别中的所有性别和当前频道性别一致
if ($condition['gender'] === '1,2,3') {
if (isset($condition['gender']) && $condition['gender'] === '1,2,3') {
switch ($condition['channel']) {
case 1:
$condition['gender'] = '1,3';
... ...