Issue 163: Filesize shown for external files

master
Nathan Adams 2016-10-02 11:17:33 -05:00
parent ce03e17d58
commit 84547905d6
1 changed files with 2 additions and 1 deletions

View File

@ -215,7 +215,8 @@ class IDF_Upload extends Pluf_Model
if ($this->ext_file == "") {
$this->md5 = md5_file ($this->getFullPath());
} else {
$this->filesize = $this->getRemoteFilesize($this->ext_file, false);
$this->filesize = max(0, $this->getRemoteFilesize($this->ext_file, false));
}
}
}