From 45ee74d304ba509d1931abd922e178b6e04ad2b8 Mon Sep 17 00:00:00 2001 From: Karsten Heiken Date: Sun, 8 May 2011 20:02:45 +0200 Subject: [PATCH] Remove counting of configurations in project model If we need to know how many configurations we've got, we can simply count them when needed... --- application/models/project.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/models/project.php b/application/models/project.php index 9e1fa15..ed7c038 100644 --- a/application/models/project.php +++ b/application/models/project.php @@ -106,9 +106,8 @@ class Project extends CI_Model { $query = $this->db->get_where('configurations', array('project_id' => $project_id)); $configurations = $query->result_array(); - $configuration_count = $query->num_rows(); - return array('count' => $configuration_count, 'configs' => $configurations); + return $configurations; } /**