mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
limit
This commit is contained in:
@@ -52,7 +52,7 @@ class Visitor_model extends CI_Model {
|
||||
$this->db->where_in($this->config->item('table_name').'.station_id', $StationLocationsArray);
|
||||
$this->db->order_by(''.$this->config->item('table_name').'.COL_TIME_ON', "desc");
|
||||
|
||||
if ($num == 'all') {
|
||||
if ($num == 'all' || $num > 5000) {
|
||||
$this->db->limit('5000');
|
||||
return $this->db->get();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user