From 30f0b6b3e7ca4aa6633a3b9d2fdef878ada427b2 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 29 Aug 2020 16:57:47 +0100 Subject: [PATCH] dayswithqsos added "col_time_on" to "getDates" to see if it fixes error Change to see if it fixes #582 --- application/models/Dayswithqso_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Dayswithqso_model.php b/application/models/Dayswithqso_model.php index a78d4d51..ca20c322 100644 --- a/application/models/Dayswithqso_model.php +++ b/application/models/Dayswithqso_model.php @@ -80,7 +80,7 @@ class Dayswithqso_model extends CI_Model $CI->load->model('Stations'); $station_id = $CI->Stations->find_active(); - $sql = "select distinct cast(col_time_on as date) as date from " + $sql = "select col_time_on, distinct cast(col_time_on as date) as date from " .$this->config->item('table_name'). " thcv where station_id = " . $station_id . " order by col_time_on asc"; @@ -89,4 +89,4 @@ class Dayswithqso_model extends CI_Model return $query->result(); } -} \ No newline at end of file +}