summaryrefslogtreecommitdiffstats
path: root/system/application/controllers/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/application/controllers/file.php')
-rw-r--r--system/application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php
index 96165eb55..ac8f15452 100644
--- a/system/application/controllers/file.php
+++ b/system/application/controllers/file.php
@@ -218,7 +218,7 @@ class File extends Controller {
unlink($file);
$this->db->query('DELETE FROM files WHERE hash = ?', array($row['hash']));
} else {
- $this->db->query('DELETE FROM files WHERE id = ?', array($row['id']));
+ $this->db->query('DELETE FROM files WHERE id = ? LIMIT 1', array($row['id']));
}
}
}