summaryrefslogtreecommitdiffstats
path: root/system/application/controllers
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-02-26 18:19:58 +0100
committerFlorian Pritz <bluewind@xssn.at>2010-02-26 18:19:58 +0100
commit1d5ab0d38219163e07cc0923d30349e3bc82b9d7 (patch)
tree35af55c294cd1d651f539dc566a319d909ace2de /system/application/controllers
parentd3e4293d43ca8bd63e6fd2a10d6363485fe2eb6c (diff)
add LIMITs to (maybe) speedup queries
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/controllers')
-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']));
}
}
}