[Svn-src-all:2764] [version-2_12-dev 21663] #1605 (PHP4向けコードの除去、PHP5向けのコード最適化)
Seasoft
admin @ mail.ec-cube.net
2012年 3月 20日 (火) 01:42:36 JST
Subversion committed to /home/svn/open 21663
http://svn.ec-cube.net/open_trac/changeset/21663
┌────────────────────────────┐
│更新者 : Seasoft │
│更新日時: 2012-03-20 01:42:36 +0900 (火, 20 3月 2012)│
└────────────────────────────┘
Log:
--------------------------------------------------------
#1605 (PHP4向けコードの除去、PHP5向けのコード最適化)
Changed: [U:修正,A:追加,D:削除]
--------------------------------------------------------
U branches/version-2_12-dev/data/class/pages/cart/LC_Page_Cart.php
変更: branches/version-2_12-dev/data/class/pages/cart/LC_Page_Cart.php
===================================================================
--- branches/version-2_12-dev/data/class/pages/cart/LC_Page_Cart.php 2012-03-19 16:19:19 UTC (rev 21662)
+++ branches/version-2_12-dev/data/class/pages/cart/LC_Page_Cart.php 2012-03-19 16:42:36 UTC (rev 21663)
@@ -159,8 +159,7 @@
}
$this->arrInfo = SC_Helper_DB_Ex::sfGetBasisData();
$totalIncTax = 0;
- foreach (array_keys($this->cartKeys) as $index) {
- $key = $this->cartKeys[$index];
+ foreach ($this->cartKeys as $key) {
// カート集計処理
$this->tpl_message = $objCartSess->checkProducts($key);
$this->tpl_total_inctax[$key] = $objCartSess->getAllProductsTotal($key);
@@ -176,9 +175,6 @@
// 送料無料までの金額を計算
$this->tpl_deliv_free[$key] = $this->arrInfo['free_rule'] - $this->tpl_total_inctax[$key];
- if (SC_Utils_Ex::isBlank($key)) {
- unset($this->cartKeys[$index]);
- }
}
//商品の合計金額をセット
Svn-src-all メーリングリストの案内