Changeset 21039


Ignore:
Timestamp:
2011/07/26 19:11:21 (9 years ago)
Author:
shutta
Message:

refs #1416 (SC_Helper_DB#sfCountCategory を is_force_all_count = true で実行時にdtb_category_countに重複して登録されてしまう)

File:
1 edited

Legend:

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

    r21034 r21039  
    726726                $objQuery->update('dtb_category_count', $sqlval, 'category_id = ?', array($cid)); 
    727727            }else{ 
     728                if ($is_force_all_count) { 
     729                    $ret = $objQuery->update('dtb_category_count', $sqlval, 'category_id = ?', array($cid)); 
     730                    if ($ret > 0) { 
     731                        continue; 
     732                    } 
     733                } 
    728734                $sqlval['category_id'] = $cid; 
    729735                $objQuery->insert('dtb_category_count', $sqlval); 
Note: See TracChangeset for help on using the changeset viewer.