fixes bug to branch search show brands
Showing
1 changed file
with
2 additions
and
0 deletions
@@ -123,7 +123,9 @@ class BrandModel | @@ -123,7 +123,9 @@ class BrandModel | ||
123 | $list = array(); | 123 | $list = array(); |
124 | $build = array(); | 124 | $build = array(); |
125 | foreach ($brand['data']['brands'] as $char => $value) { | 125 | foreach ($brand['data']['brands'] as $char => $value) { |
126 | + $build = array(); | ||
126 | foreach ($value as $row) { | 127 | foreach ($value as $row) { |
128 | + $list = array(); | ||
127 | $list['name'] = $row['brand_name']; | 129 | $list['name'] = $row['brand_name']; |
128 | $list['isHot'] = ($row['is_hot'] === 'Y') ? true : false; | 130 | $list['isHot'] = ($row['is_hot'] === 'Y') ? true : false; |
129 | $list['isNew'] = ($row['is_show_new'] === 'Y') ? true : false; | 131 | $list['isNew'] = ($row['is_show_new'] === 'Y') ? true : false; |
-
Please register or login to post a comment