fixes bug to home redirect
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -319,15 +319,15 @@ class DetailModel | @@ -319,15 +319,15 @@ class DetailModel | ||
319 | $sizeNameList = array(0 => array('param' => '吊牌尺码')); // 尺码名称 | 319 | $sizeNameList = array(0 => array('param' => '吊牌尺码')); // 尺码名称 |
320 | $sizeBoGroup = array(); // 尺码按ID分组 | 320 | $sizeBoGroup = array(); // 尺码按ID分组 |
321 | foreach ($sizeInfo['sizeInfoBo']['sizeAttributeBos'] as $attr) { | 321 | foreach ($sizeInfo['sizeInfoBo']['sizeAttributeBos'] as $attr) { |
322 | - $sizeBoGroup[$attr['id']][0] = array('param' => $attr['attributeName']); | 322 | + $sizeBoGroup[$attr['id']][0] = array('param' => empty($attr['attributeName']) ? ' ' : $attr['attributeName']); |
323 | } | 323 | } |
324 | foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) { | 324 | foreach ($sizeInfo['sizeInfoBo']['sizeBoList'] as $value) { |
325 | $sizeNameList[] = array('param' => $value['sizeName']); | 325 | $sizeNameList[] = array('param' => $value['sizeName']); |
326 | if (!empty($value['referenceSize']['gender']) && ($value['referenceSize']['gender'] == $gender || $value['referenceSize']['gender'] == 3)) { | 326 | if (!empty($value['referenceSize']['gender']) && ($value['referenceSize']['gender'] == $gender || $value['referenceSize']['gender'] == 3)) { |
327 | - $referenceList[] = array('param' => $value['referenceSize']['referenceName']); | 327 | + $referenceList[] = array('param' => empty($value['referenceSize']['referenceName']) ? ' ' : $value['referenceSize']['referenceName']); |
328 | } | 328 | } |
329 | foreach ($value['sortAttributes'] as $attr) { | 329 | foreach ($value['sortAttributes'] as $attr) { |
330 | - $sizeBoGroup[$attr['id']][] = array('param' => $attr['sizeValue']); | 330 | + $sizeBoGroup[$attr['id']][] = array('param' => empty($attr['sizeValue']) ? ' ' : $attr['sizeValue']); |
331 | } | 331 | } |
332 | } | 332 | } |
333 | 333 |
-
Please register or login to post a comment