Ignore:
Timestamp:
2011/03/18 05:02:44 (13 years ago)
Author:
tao
Message:

#refs fseek() を追加

Location:
branches/eccube-donation/html/frontparts/bloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eccube-donation/html/frontparts/bloc/index.php

    r20674 r20698  
    7878        $limit = intval($limit); 
    7979        ftruncate($fp,0); 
     80        fseek($fp,0); 
    8081        fwrite($fp,$num.','.$total.','.$limit); 
    8182    } 
  • branches/eccube-donation/html/frontparts/bloc/send_point.php

    r20674 r20698  
    9595            $total = intval($summary[1]); 
    9696            $limit = intval($summary[2]); 
    97             if($limit != 0 and $total == $limit){ 
     97            if($limit > 0 and $total == $limit){ 
    9898                $this->complete = true; 
    9999            } 
     
    131131                                $total = $total+$point; 
    132132                                ftruncate($fp2,0); 
     133                                fseek($fp2,0); 
    133134                                fwrite($fp2,$num.','.$total.','.$limit); 
    134135                            }else{ 
Note: See TracChangeset for help on using the changeset viewer.