From e24a004cbe26764a180bea14c556e94f079f368f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 11 Jun 2011 16:19:14 +0200 Subject: file_mod->download() remove useless check valid_id() cleans up the database if the file doesn't exists. This code didn't. Signed-off-by: Florian Pritz --- application/models/file_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application/models/file_mod.php') diff --git a/application/models/file_mod.php b/application/models/file_mod.php index efb5bf8a3..54fe3d550 100644 --- a/application/models/file_mod.php +++ b/application/models/file_mod.php @@ -193,7 +193,7 @@ class File_mod extends CI_Model { $filedata = $this->get_filedata($id); $file = $this->file($filedata['hash']); - if (!file_exists($file) || !$this->valid_id($id)) { + if (!$this->valid_id($id)) { $this->non_existent(); return; } -- cgit v1.2.3-24-g4f1b