Changeset 15356 for branches/feature-module-update/data
- Timestamp:
- 2007/08/24 22:20:19 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/feature-module-update/data/class/SC_CartSession.php
r15177 r15356 77 77 $max = $this->getMax(); 78 78 for($i = 0; $i <= $max; $i++) { 79 if($_SESSION[$this->key][$i]['id'] == $id) { 79 if(isset($_SESSION[$this->key][$i]['id']) 80 && $_SESSION[$this->key][$i]['id'] == $id) { 81 80 82 // 税込み合計 81 83 $price = $_SESSION[$this->key][$i]['price']; … … 93 95 $max = $this->getMax(); 94 96 for($i = 0; $i <= $max; $i++) { 95 if($_SESSION[$this->key][$i]['id'] == $id) { 97 if(isset($_SESSION[$this->key][$i]['id']) 98 && $_SESSION[$this->key][$i]['id'] == $id) { 96 99 $_SESSION[$this->key][$i][$key] = $val; 97 100 } … … 133 136 $max = $this->getMax(); 134 137 for($i = 0; $i <= $max; $i++) { 138 139 if (!isset($_SESSION[$this->key][$i]['price'])) { 140 $_SESSION[$this->key][$i]['price'] = ""; 141 } 135 142 $price = $_SESSION[$this->key][$i]['price']; 143 144 if (!isset($_SESSION[$this->key][$i]['quantity'])) { 145 $_SESSION[$this->key][$i]['quantity'] = ""; 146 } 136 147 $quantity = $_SESSION[$this->key][$i]['quantity']; 148 137 149 $pre_tax = SC_Utils::sfPreTax($price, $arrInfo['tax'], $arrInfo['tax_rule']); 138 150 $total+= ($pre_tax * $quantity); … … 163 175 $price = $_SESSION[$this->key][$i]['price']; 164 176 $quantity = $_SESSION[$this->key][$i]['quantity']; 177 178 if (!isset($_SESSION[$this->key][$i]['point_rate'])) { 179 $_SESSION[$this->key][$i]['point_rate'] = ""; 180 } 165 181 $point_rate = $_SESSION[$this->key][$i]['point_rate']; 182 183 if (!isset($_SESSION[$this->key][$i]['id'][0])) { 184 $_SESSION[$this->key][$i]['id'][0] = ""; 185 } 166 186 $id = $_SESSION[$this->key][$i]['id'][0]; 167 187 $point = SC_Utils_Ex::sfPrePoint($price, $point_rate, POINT_RULE, $id); … … 247 267 $max = $this->getMax(); 248 268 for($i = 0; $i <= $max; $i++) { 249 if($_SESSION[$this->key][$i]['cart_no'] != "") { 269 if(isset($_SESSION[$this->key][$i]['cart_no']) 270 && $_SESSION[$this->key][$i]['cart_no'] != "") { 250 271 $arrRet[] = $_SESSION[$this->key][$i]; 251 272 }
Note: See TracChangeset
for help on using the changeset viewer.