From ad623607be712722ae3a39925e7acde8338513e1 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 14 Feb 2010 17:48:21 +0100 Subject: remove leftover substr call causes errors when trying to remove a file Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/application/models/file_mod.php') 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 } } -- cgit v1.2.3-24-g4f1b