Changeset 21322
- Timestamp:
- 2011/11/10 19:41:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/products/LC_Page_Products_Detail.php
r21309 r21322 453 453 foreach($arrRecommendData as $recommend){ 454 454 $arrRecommendProductId[] = $recommend["recommend_product_id"]; 455 $arrRecommendData[$recommend["recommend_product_id"]] = $recommend['comment'];456 455 } 457 456 … … 467 466 468 467 $arrRecommend = array(); 469 foreach($arrRecommendProductId as $product_id) { 470 $arrProducts2[$product_id]['comment'] = $arrRecommendData[$product_id]; 471 $arrRecommend[] = $arrProducts2[$product_id]; 472 } 473 474 return $arrRecommend; 468 foreach ($arrRecommendData as $key => $arrRow) { 469 $arrRecommendData[$key] = array_merge($arrRow, $arrProducts2[$arrRow['recommend_product_id']]); 470 } 471 472 return $arrRecommendData; 475 473 } 476 474
Note: See TracChangeset
for help on using the changeset viewer.