Changeset 21690


Ignore:
Timestamp:
2012/03/28 03:39:56 (12 years ago)
Author:
Seasoft
Message:

#1607 (未使用定義の削除)
category_id 列以外は使用していない。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/helper/SC_Helper_DB.php

    r21684 r21690  
    609609 
    610610        // 現在のカテゴリ情報を取得 
    611         $arrCurrentCat = $objQuery->select('product_id, category_id, rank', 
     611        $arrCurrentCat = $objQuery->getCol('category_id', 
    612612                                           'dtb_product_categories', 
    613613                                           'product_id = ?', 
     
    615615 
    616616        // 登録するカテゴリ情報と比較 
    617         foreach ($arrCurrentCat as $val) { 
     617        foreach ($arrCurrentCat as $category_id) { 
    618618 
    619619            // 登録しないカテゴリを削除 
    620             if (!in_array($val['category_id'], $arrCategory_id)) { 
    621                 $this->removeProductByCategories($val['category_id'], $product_id); 
     620            if (!in_array($category_id, $arrCategory_id)) { 
     621                $this->removeProductByCategories($category_id, $product_id); 
    622622            } 
    623623        } 
Note: See TracChangeset for help on using the changeset viewer.