Changeset 20701


Ignore:
Timestamp:
2011/03/18 05:31:03 (10 years ago)
Author:
tao
Message:

#refs バグっぽいのを修正

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

Legend:

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

    r20698 r20701  
    9494            $summary = explode(",",$summary); 
    9595            $total = intval($summary[1]); 
    96             $limit = intval($summary[2]); 
     96            if(intval($summary[2] > 0){ 
     97                $limit = intval($summary[2]); 
     98            } 
    9799            if($limit > 0 and $total == $limit){ 
    98100                $this->complete = true; 
     
    110112                    $this->tpl_error = "1以上のポイントを保有ポイント内で半角数字で入力してください。"; 
    111113                }else{ 
    112                     if(isset($summary) and $this->complete == false){ 
     114                    if($limit > 0 and $this->complete == false){ 
    113115                        if(($limit - $total) < $point){ 
    114116                            $point = $limit - $total; 
  • branches/eccube-donation/html/mobile/frontparts/bloc/send_point.php

    r20700 r20701  
    8383            $summary = explode(",",$summary); 
    8484            $total = intval($summary[1]); 
    85             $limit = intval($summary[2]); 
     85            if(intval($summary[2]) > 0){ 
     86                $limit = intval($summary[2]); 
     87            } 
    8688            if($limit != 0 and $total == $limit){ 
    8789                $this->complete = true; 
     
    99101                    $this->tpl_error = "1以上のポイントを保有ポイント内で半角数字で入力してください。"; 
    100102                }else{ 
    101                     if(isset($summary) and $this->complete == false){ 
     103                    if($limit > 0 and $this->complete == false){ 
    102104                        if(($limit - $total) < $point){ 
    103105                            $point = $limit - $total; 
Note: See TracChangeset for help on using the changeset viewer.