diff options
-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) { |