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

#refs fseek() を追加

File:
1 edited

Legend:

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

    r20674 r20699  
    7171                $objQuery->query("INSERT INTO dtb_bloc (bloc_name,tpl_path,filename,create_date,update_date,php_path,del_flg) 
    7272                 VALUES('東北地方太平洋沖地震ポイント寄付状況','','thank_you',NOW(),NOW(),'frontparts/bloc/thank_you.php',0)"); 
    73                  if($fp = fopen(DATA_PATH.'downloads/donation_summary.csv','a+')){ 
    74                     fwrite($fp,'0,0,0'); 
    75                     fclose($fp); 
     73                 if(!file_exists(DATA_PATH.'downloads/donation_summary.csv')){ 
     74                     if($fp = fopen(DATA_PATH.'downloads/donation_summary.csv','a+')){ 
     75                        fwrite($fp,'0,0,0'); 
     76                        fclose($fp); 
     77                     }else{ 
     78                        echo '<p>エラー:ポイントサマリーファイルを作成出来ませんでした。</p>'; 
     79                        exit; 
     80                     } 
    7681                 } 
    7782            } 
Note: See TracChangeset for help on using the changeset viewer.