Authored by hf

fixes bug to branch search show brands

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