Changeset 19741


Ignore:
Timestamp:
2010/12/18 19:52:28 (12 years ago)
Author:
AMUAMU
Message:

#515 PHP5.3対応の一部。空の配列におけるEXIST_CHECKの挙動変更への対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_CheckError.php

    r19672 r19741  
    8181        } 
    8282        $this->createParam($value); 
    83         if( strlen($this->arrParam[$value[1]]) == 0 ){ 
     83        if(!is_array($this->arrParam[$value[1]]) and strlen($this->arrParam[$value[1]]) == 0 ){ 
    8484            $this->arrErr[$value[1]] = "※ " . $value[0] . "が入力されていません。<br />"; 
     85        }else if(is_array($this->arrParam[$value[1]]) and count($this->arrParam[$value[1]]) == 0) { 
     86            $this->arrErr[$value[1]] = "※ " . $value[0] . "が選択されていません。<br />"; 
    8587        } 
    8688    } 
Note: See TracChangeset for help on using the changeset viewer.