Changeset 21935 for branches/version-2_12-dev/data/class/SC_CartSession.php
- Timestamp:
- 2012/06/21 15:02:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_CartSession.php
r21925 r21935 51 51 } 52 52 // 1世代古いコピー情報は、削除しておく 53 foreach ( array_keys($_SESSION) as $k) {54 if ($k != $this->key_tmp && preg_match('/^savecart_/', $k)) {55 unset($this->cartSession[$productTypeId][$k ]);53 foreach ($_SESSION as $key => $value) { 54 if ($key != $this->key_tmp && preg_match('/^savecart_/', $key)) { 55 unset($this->cartSession[$productTypeId][$key]); 56 56 } 57 57 } … … 97 97 function getNextCartID($productTypeId) { 98 98 $count = array(); 99 foreach ( array_keys($this->cartSession[$productTypeId]) as $key) {99 foreach ($this->cartSession[$productTypeId] as $key => $value) { 100 100 $count[] = $this->cartSession[$productTypeId][$key]['cart_no']; 101 101 } … … 144 144 $max = 0; 145 145 if (count($this->cartSession[$productTypeId]) > 0) { 146 foreach ( array_keys($this->cartSession[$productTypeId]) as $key) {146 foreach ($this->cartSession[$productTypeId] as $key => $value) { 147 147 if (is_numeric($key)) { 148 148 if ($max < $key) { … … 320 320 321 321 // 必要な項目以外を削除。 322 foreach ( array_keys($arrProductsClass) as $key) {322 foreach ($arrProductsClass as $key => $value) { 323 323 if (!isset($arrNecessaryItems[$key])) { 324 324 unset($arrProductsClass[$key]); … … 379 379 foreach ($cartKeys as $key) { 380 380 $cartItems = $this->getCartList($key); 381 foreach ( array_keys($cartItems) as $itemKey) {381 foreach ($cartItems as $itemKey => $itemValue) { 382 382 $cartItem =& $cartItems[$itemKey]; 383 383 $results[$key][$i] =& $cartItem;
Note: See TracChangeset
for help on using the changeset viewer.