summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/application/models/file_mod.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index e8e9919ce..723970f0f 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -226,6 +226,10 @@ class File_mod extends Model {
$filedata = $this->get_filedata($id);
$password = $this->get_password();
+ if ($password == "NULL") {
+ return false;
+ }
+
if(!$this->id_exists($id)) {
return false;
}