diff options
author | Rafael Bodill <rafi@sortex.co.il> | 2014-09-19 14:56:53 +0200 |
---|---|---|
committer | Rafael Bodill <rafi@sortex.co.il> | 2014-09-19 14:56:53 +0200 |
commit | 701f6b08f7d983e364b3b97d7525d3e94f5b19d0 (patch) | |
tree | 092b83a4b745fbfc264f95a089107e15dafdd671 /application/controllers | |
parent | ce4d7b166d6785d23bf47255467ef2fbfdcf4efb (diff) |
Correct unsupported open/close where query statements
Diffstat (limited to 'application/controllers')
-rw-r--r-- | application/controllers/file.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php index d293310c5..96c3fb9c6 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -1004,9 +1004,7 @@ class File extends MY_Controller { $query = $this->db->select('hash, id, user') ->from('files') ->where('date <', $oldest_time) - ->or_where_open() - ->where('user', 0) - ->where('date <', $oldest_session_time) + ->or_where("(user = 0 AND date < $oldest_session_time)") ->get()->result_array(); foreach($query as $row) { |