summaryrefslogtreecommitdiffstats
path: root/system/application/models/file_mod.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-02-14 17:48:21 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-02-14 17:48:21 +0100
commitad623607be712722ae3a39925e7acde8338513e1 (patch)
tree098ead6ec9f624a1f6253566d296102fb701ffb6 /system/application/models/file_mod.php
parent5cb8dbec56fae74dd9d5ae30ed06464135b600f3 (diff)
remove leftover substr call
causes errors when trying to remove a file Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/models/file_mod.php')
-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
}
}