Fix file deletion bug

This commit is contained in:
drigato 2015-02-25 15:09:02 -05:00
parent 68948e3bb5
commit e0a050ac60
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ SQL;
Logging::info("User ".$user->getLogin()." is deleting file: ".$this->_file->getDbTrackTitle()." - file id: ".$file_id);
$filesize = $this->_file->getFileSize();
if ($filesize <= 0) {
if ($filesize < 0) {
throw new Exception("Cannot delete file with filesize ".$filesize);
}