summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
Diffstat (limited to 'application/models')
-rw-r--r--application/models/mfile.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/application/models/mfile.php b/application/models/mfile.php
index ea81ee32d..feccfcb8f 100644
--- a/application/models/mfile.php
+++ b/application/models/mfile.php
@@ -131,6 +131,11 @@ class Mfile extends CI_Model {
public function valid_id($id)
{
$filedata = $this->get_filedata($id);
+
+ if (!$filedata) {
+ return false;
+ }
+
return \service\files::valid_id($filedata, $this->id_validation_config, $this, time());
}