Changeset 14731


Ignore:
Timestamp:
2007/06/17 22:27:30 (17 years ago)
Author:
kakinaka
Message:

カートIDのバグを修正

File:
1 edited

Legend:

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

    r14130 r14731  
    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.