- Timestamp:
- 2012/01/17 16:15:39 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/mypage/LC_Page_Mypage_Favorite.php
r21376 r21402 177 177 // お気に入り商品削除 178 178 function lfDeleteFavoriteProduct($customer_id, $product_id) { 179 $objQuery =& SC_Query_Ex::getSingletonInstance(); 179 $objQuery =& SC_Query_Ex::getSingletonInstance(); 180 $count = $objQuery->count("dtb_customer_favorite_products", "customer_id = ? AND product_id = ?", array($customer_id, $product_id)); 180 181 181 $exists = $objQuery->exists("dtb_customer_favorite_products", "customer_id = ? AND product_id = ?", array($customer_id, $product_id)); 182 183 if ($exists) { 182 if ($count > 0) { 183 $objQuery->begin(); 184 184 $objQuery->delete('dtb_customer_favorite_products', "customer_id = ? AND product_id = ?", array($customer_id, $product_id)); 185 $objQuery->commit(); 185 186 } 186 187 }
Note: See TracChangeset
for help on using the changeset viewer.