Changeset 14732 for branches/rel


Ignore:
Timestamp:
2007/06/17 22:28:08 (15 years ago)
Author:
kakinaka
Message:

カートIDのバグを修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel/data/class/SC_CartSession.php

    r14117 r14732  
    6767    // ¼¡¤Ë³ä¤êÅö¤Æ¤ë¥«¡¼¥È¤ÎID¤ò¼èÆÀ¤¹¤ë 
    6868    function getNextCartID() { 
    69         $max = count($_SESSION[$this->key]); 
    70         for($i = 0; $i < $max; $i++) { 
    71             $arrRet[] = $_SESSION[$this->key][$i]['cart_no']; 
    72         } 
     69        foreach($_SESSION[$this->key] as $key => $val){ 
     70            $arrRet[] = $_SESSION[$this->key][$key]['cart_no']; 
     71        } 
    7372        return (max($arrRet) + 1);       
    7473    } 
Note: See TracChangeset for help on using the changeset viewer.