Changeset 15346 for branches


Ignore:
Timestamp:
2007/08/24 13:13:08 (17 years ago)
Author:
nanasess
Message:

未定義変数の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/SC_CheckError.php

    r15080 r15346  
    7575            return; 
    7676        } 
     77        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    7778        if(strlen($this->arrParam[$value[1]]) != 0 && ereg("^[  \t\r\n]+$", $this->arrParam[$value[1]])){                        
    7879            $this->arrErr[$value[1]] = "※ " . $value[0] . "にスペース、タブ、改行のみの入力はできません。<br />"; 
     
    8687            return; 
    8788        } 
     89        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    8890        if(strlen($this->arrParam[$value[1]]) != 0 && mb_ereg("[  \t\r\n]+", $this->arrParam[$value[1]])){                       
    8991            $this->arrErr[$value[1]] = "※ " . $value[0] . "にスペース、タブ、改行は含めないで下さい。<br />"; 
     
    9698            return; 
    9799        } 
     100        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    98101        if(strlen($this->arrParam[$value[1]]) != 0 && ereg("^[0]+[0-9]+$", $this->arrParam[$value[1]])){                         
    99102            $this->arrErr[$value[1]] = "※ " . $value[0] . "に0で始まる数値が入力されています。<br />"; 
     
    107110            return; 
    108111        } 
     112        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    109113        if( strlen($this->arrParam[$value[1]]) == 0 ){                       
    110114            $this->arrErr[$value[1]] = "※ " . $value[0] . "が選択されていません。<br />"; 
     
    118122            return; 
    119123        } 
     124        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    120125        // 文字数の取得            
    121126        if( $this->arrParam[$value[2]] != $this->arrParam[$value[3]]) { 
     
    130135            return; 
    131136        } 
     137        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    132138        // 文字数の取得            
    133139        if( $this->arrParam[$value[2]] == $this->arrParam[$value[3]]) { 
     
    142148            return; 
    143149        } 
     150        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    144151        // 文字数の取得            
    145152        if($this->arrParam[$value[2]] != "" && $this->arrParam[$value[3]] != "" && ($this->arrParam[$value[2]] > $this->arrParam[$value[3]])) { 
     
    155162            return; 
    156163        } 
     164        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    157165        // 文字数の取得            
    158166        if( mb_strlen($this->arrParam[$value[1]]) > $value[2] ) { 
     
    167175            return; 
    168176        }                                        
     177        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    169178        // 文字数の取得        
    170179        if( mb_strlen($this->arrParam[$value[1]]) < $value[2] ) { 
     
    179188            return; 
    180189        } 
     190        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    181191        // 文字数の取得            
    182192        if($this->arrParam[$value[1]] > $value[2] ) { 
     
    191201            return; 
    192202        } 
     203        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    193204        if($this->arrParam[$value[1]] < $value[2] ) { 
    194205            $this->arrErr[$value[1]] = "※ " . $value[0] . "は" . $value[2] . "以上で入力してください。<br />"; 
     
    203214            return; 
    204215        } 
     216        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    205217        if( strlen($this->arrParam[$value[1]]) > 0 && !EregI("^[[:digit:]]+$", $this->arrParam[$value[1]])) {  
    206218            $this->arrErr[$value[1]] = "※ " . $value[0] . "は数字で入力してください。<br />";     
     
    214226            return; 
    215227        } 
     228        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    216229        if( strlen($this->arrParam[$value[1]]) > 0 && !EregI("^[[:digit:]]+[\.]?[[:digit:]]+$", $this->arrParam[$value[1]])) {  
    217230            $this->arrErr[$value[1]] = "※ " . $value[0] . "は数字で入力してください。<br />";     
     
    223236            return; 
    224237        } 
     238        if (!isset($this->arrParam[$value[1]])) $this->arrParam[$value[1]] = ""; 
    225239        if( strlen($this->arrParam[$value[1]]) > 0 && !EregI("^[[:alpha:]]+$", $this->arrParam[$value[1]])) {  
    226240            $this->arrErr[$value[1]] = "※ " . $value[0] . "は半角英字で入力してください。<br />";   
Note: See TracChangeset for help on using the changeset viewer.