diff options
Diffstat (limited to 'application/models/file_mod.php')
-rw-r--r-- | application/models/file_mod.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/application/models/file_mod.php b/application/models/file_mod.php index fce84c090..f890744cf 100644 --- a/application/models/file_mod.php +++ b/application/models/file_mod.php @@ -150,6 +150,9 @@ class File_mod extends CI_Model { function valid_id($id) { $filedata = $this->get_filedata($id); + if (!$filedata) { + return false; + } $file = $this->file($filedata['hash']); if (!file_exists($file)) { |