summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/application/models/file_mod.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index 5e31784b2..3d7aa6eec 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -99,7 +99,7 @@ class File_mod extends Model {
$query = $this->db->query($sql, array($id, $password));
if($this->unused_file($filedata['hash'])) {
- unlink($this->file(substr($filedata['hash'])));
+ unlink($this->file($filedata['hash']));
// TODO: remove empty folders
}
}