diff options
-rw-r--r-- | application/controllers/file.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index 55ed10fea..d510badc0 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -416,6 +416,11 @@ class File extends CI_Controller { ", array($user))->result_array(); foreach($query as $key => $item) { + if (!$this->mfile->valid_id($item["id"])) { + unset($query[$key]); + continue; + } + $filesize = format_bytes($item["filesize"]); $dimensions = $this->mfile->image_dimension($this->mfile->file($item["hash"])); $upload_date = date("r", $item["date"]); |