Authored by Rock Zhang

修复品牌一览页面品牌的标签不存在导致php报错的bug

... ... @@ -107,8 +107,8 @@ class BrandModel
$build['list'] = array();
foreach ($value as $row) {
$list['name'] = $row['brand_name'];
$list['isHot'] = ($row['is_hot'] === 'Y') ? true : false;
$list['isNew'] = ($row['is_show_new'] === 'Y') ? true : false;
$list['isHot'] = (isset($row['is_hot']) && $row['is_hot'] === 'Y') ? true : false;
$list['isNew'] = (isset($row['is_show_new']) && $row['is_show_new'] === 'Y') ? true : false;
$list['url'] = Helpers::url('', null, $row['brand_domain']);
$build['list'][] = $list;
}
... ...