Changeset 9937

Show
Ignore:
Timestamp:
11/14/08 18:15:27 (2 months ago)
Author:
afz
Message:

fix issue in delete method of file cache

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.8/jaws/html/include/Jaws/Cache/File.php

    r9924 r9937  
    4242        } 
    4343 
    44         $file = $this->_path. $component. '.'. $section. (is_null($params)? '' : ('.'. $params)); 
     44        $file = $this->_path. $component. '.'. $section. (empty($params)? '' : ('.'. $params)); 
    4545        return (bool) Jaws_Utils::file_put_contents($file, $data); 
    4646    } 
     
    8080        $match  = is_null($component)? '' : $component; 
    8181        $match .= '.' . (is_null($section)? '' : $section); 
    82         $match .= is_null($params)? '' : ('.' . $params); 
     82        $match .= empty($params)? '' : ('.' . $params); 
    8383        $files = &File_Find::search('/'.$match.'/i', $this->_path, 'perl', false, 'files'); 
    8484        foreach ($files as $file) {