From e0a050ac608a48c470c3463a7333dd568bd1109b Mon Sep 17 00:00:00 2001 From: drigato Date: Wed, 25 Feb 2015 15:09:02 -0500 Subject: [PATCH] Fix file deletion bug --- airtime_mvc/application/models/StoredFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 26cbea647..f7c023bb4 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -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); }