material_510_3
This commit is contained in:
@@ -276,13 +276,7 @@ class Template extends HD_Controller
|
||||
}
|
||||
$brand_ids = '';
|
||||
if ($info['brand_ids']) {
|
||||
if (!strstr($info['brand_ids'], '0,')) {
|
||||
$brand_ids = '0,';
|
||||
}
|
||||
$brand_ids .= implode(',', $info['brand_ids']);
|
||||
if (!strstr($brand_ids, ',0')) {
|
||||
$brand_ids .= ',0';
|
||||
}
|
||||
$brand_ids = '0,' . implode(',', $info['brand_ids']) . ',0';
|
||||
}
|
||||
$json_data['biz_pop'] = $info['biz_pop'];
|
||||
$json_data['moments'] = $info['moments'];
|
||||
@@ -341,13 +335,7 @@ class Template extends HD_Controller
|
||||
}
|
||||
$brand_ids = '';
|
||||
if ($info['brand_ids']) {
|
||||
if (!strstr($info['brand_ids'], '0,')) {
|
||||
$brand_ids = '0,';
|
||||
}
|
||||
$brand_ids .= implode(',', $info['brand_ids']);
|
||||
if (!strstr($brand_ids, ',0')) {
|
||||
$brand_ids .= ',0';
|
||||
}
|
||||
$brand_ids = '0,' . implode(',', $info['brand_ids']) . ',0';
|
||||
}
|
||||
$json_data['biz_pop'] = $info['biz_pop'];
|
||||
$json_data['moments'] = $info['moments'];
|
||||
|
||||
Reference in New Issue
Block a user