minor fix

This commit is contained in:
tomash 2006-11-15 01:36:32 +00:00
parent fa0f1ffbff
commit 87715a4207
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class Transport
) as $k) {
$res[$k] = ( isset($trec->row[$k]) ? $trec->row[$k] : NULL );
}
if ( file_exists($trec->row['localfile']) ){
if ( ($trec->row['direction'] == 'down') && file_exists($trec->row['localfile']) ){
$res['realsize'] = filesize($trec->row['localfile']);
$res['realsum'] = $this->_chsum($trec->row['localfile']);
}