This commit is contained in:
HB9HIL
2024-11-10 12:05:02 +01:00
parent 1c92a8f559
commit dfa48a3992

View File

@@ -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 {