Changeset 18637 for branches/comu-ver2


Ignore:
Timestamp:
2010/05/08 16:55:40 (14 years ago)
Author:
Seasoft
Message:

merge r18517

  • 取得元: version-2_4

【取得元のログメッセージ】
merged r18466

  • 電話番号の桁数チェックが3項目個別に行われていて意味を成していない(#556)
Location:
branches/comu-ver2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2

  • branches/comu-ver2/data/class/SC_CheckError.php

    r18579 r18637  
    296296        } 
    297297 
     298        $total_count = 0; 
    298299        for($i = 1; $i <= 3; $i++) { 
    299300            if(strlen($this->arrParam[$value[$i]]) > 0 && strlen($this->arrParam[$value[$i]]) > $value[4]) { 
     
    302303                $this->arrErr[$value[$i]] .= "※ " . $value[0] . $i . "は数字で入力してください。<br />"; 
    303304            } 
     305            $total_count += strlen($this->arrParam[$value[$i]]); 
     306        } 
     307 
     308        // 合計値チェック 
     309        if ($total_count > TEL_LEN) { 
     310            $this->arrErr[$value[3]] .= "※ " . $value[0] . "は" . TEL_LEN . "文字以内で入力してください。<br />"; 
    304311        } 
    305312    } 
Note: See TracChangeset for help on using the changeset viewer.