Ignore:
Timestamp:
2012/11/12 20:33:15 (10 years ago)
Author:
h_yoshimoto
Message:

#1955 r22089r22095 間のコミットをmerge

Location:
branches/version-2_12-multilang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang

  • branches/version-2_12-multilang/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php

    r21867 r22096  
    156156            $this->root_parent_id[] = $arrParentID[0]; 
    157157            $arrDispID = array_merge($arrBrothersID, $arrChildrenID); 
    158             foreach ($arrRet as $key => $array) { 
    159                 foreach ($arrDispID as $val) { 
    160                     if ($array['category_id'] == $val) { 
    161                         $arrRet[$key]['display'] = 1; 
    162                         break; 
    163                     } 
     158            foreach ($arrRet as &$arrCategory) { 
     159                if (in_array($arrCategory['category_id'], $arrDispID)) { 
     160                    $arrCategory['display'] = 1; 
    164161                } 
    165162            } 
Note: See TracChangeset for help on using the changeset viewer.