From 7df5229f6ff48e130371043ab7d1f8e97856cb13 Mon Sep 17 00:00:00 2001 From: phl0 Date: Sat, 16 Sep 2023 08:20:03 +0200 Subject: [PATCH] Apply limit too prevent memory exhaustion --- application/models/Logbook_model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index a46dc35d..f88cfa9a 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -423,6 +423,8 @@ class Logbook_model extends CI_Model { } $this->db->order_by("COL_TIME_ON", "desc"); + $this->db->limit(500); + return $this->db->get($this->config->item('table_name')); }