summaryrefslogtreecommitdiffstats
path: root/application/models/file_mod.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-06-11 16:19:14 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-06-11 16:19:14 +0200
commite24a004cbe26764a180bea14c556e94f079f368f (patch)
treee7f5b2e97178f3c896c166b6144e73ad68162003 /application/models/file_mod.php
parentb8fb38927fd2cc25f6748cff51b7de94e3082701 (diff)
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 <bluewind@xinu.at>
Diffstat (limited to 'application/models/file_mod.php')
-rw-r--r--application/models/file_mod.php2
1 files changed, 1 insertions, 1 deletions
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;
}