Ignore:
Timestamp:
2011/02/27 01:13:17 (16 years ago)
Author:
shutta
Message:

refs #515
PHP5.3での非推奨関数split()をexplode(),preg_split()へ置き換え。

File:
1 edited

Legend:

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

    r20255 r20428  
    141141 
    142142        if (!empty($db_date)) { 
    143             list($y, $m, $d) = split("[- ]", $db_date); 
     143            list($y, $m, $d) = preg_split("/[- ]/", $db_date); 
    144144            $this->setValue($year_key, $y); 
    145145            $this->setValue($month_key, $m); 
    … …  
    427427            if($val == $keyname) { 
    428428                if(isset($this->param[$cnt]) && !is_array($this->param[$cnt])) { 
    429                     $this->param[$cnt] = split("-", $this->param[$cnt]); 
     429                    $this->param[$cnt] = explode("-", $this->param[$cnt]); 
    430430                } 
    431431            } 
Note: See TracChangeset for help on using the changeset viewer.