summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
diff options
context:
space:
mode:
authorRafael Bodill <rafi@sortex.co.il>2014-09-19 17:36:51 +0200
committerRafael Bodill <rafi@sortex.co.il>2014-09-19 17:36:51 +0200
commit8082cc98e7ebc9a27dcf8a8a4e6ee24dc71af1f3 (patch)
tree52b92bc5eea38d9eb17674e6fb2b4244d9501cc0 /application/controllers/file.php
parent1a007fc8e7bf71fc5e292929af00a15bcac6b2c2 (diff)
where_in for in array queries a proper count usage
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r--application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 96c3fb9c6..ddb7a38cf 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -541,7 +541,7 @@ class File extends MY_Controller {
->select('id, filename, mimetype, date, hash, filesize')
->from('files')
->where('user', $user)
- ->where('mimetype', array('image/jpeg', 'image/png', 'image/gif'))
+ ->where_in('mimetype', array('image/jpeg', 'image/png', 'image/gif'))
->order_by('date', 'desc')
->get()->result_array();