From 68c25fc7f99f4fbf8c010c23744562eb830da5fa Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Mon, 29 Jul 2024 21:35:01 +0200 Subject: [PATCH] Fixed variable naming and defining --- application/controllers/Statistics.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/application/controllers/Statistics.php b/application/controllers/Statistics.php index b6a342eff..cc7814065 100644 --- a/application/controllers/Statistics.php +++ b/application/controllers/Statistics.php @@ -160,6 +160,8 @@ class Statistics extends CI_Controller { public function get_unique_sat_callsigns() { $this->load->model('stats'); + $total_qsos = array(); + $result = $this->stats->unique_sat_callsigns(); $total_qsos['qsoarray'] = $result['qsoView']; $total_qsos['satunique'] = $result['satunique']; @@ -174,6 +176,8 @@ class Statistics extends CI_Controller { public function get_unique_callsigns() { $this->load->model('stats'); + $total_qsos = array(); + $result = $this->stats->unique_callsigns(); $total_qsos['qsoarray'] = $result['qsoView']; $total_qsos['bandunique'] = $result['bandunique']; @@ -187,7 +191,7 @@ class Statistics extends CI_Controller { public function get_total_sat_qsos() { $this->load->model('stats'); - $totalqsos = array(); + $total_qsos = array(); $result = $this->stats->total_sat_qsos(); $total_qsos['qsoarray'] = $result['qsoView']; @@ -202,7 +206,7 @@ class Statistics extends CI_Controller { public function get_total_qsos() { $this->load->model('stats'); - $totalqsos = array(); + $total_qsos = array(); $result = $this->stats->total_qsos(); $total_qsos['qsoarray'] = $result['qsoView']; @@ -216,7 +220,7 @@ class Statistics extends CI_Controller { public function qslstats() { $this->load->model('stats'); - $totalqsos = array(); + $total_qsos = array(); $result = $this->stats->total_qsls(); $total_qsos['qsoarray'] = $result['qsoView'];