From 45ceb9060922c32b7e95c4e1aad37b5f3173591a Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 15 Sep 2020 22:50:59 +0100 Subject: [PATCH] [eQSL] Commented Code --- application/controllers/Eqsl.php | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/application/controllers/Eqsl.php b/application/controllers/Eqsl.php index 76352f4e..68437093 100644 --- a/application/controllers/Eqsl.php +++ b/application/controllers/Eqsl.php @@ -94,12 +94,13 @@ class eqsl extends CI_Controller { } public function import() { - $this->load->model('stations'); - if($this->stations->are_eqsl_nicks_defined() == 0) { - show_error('eQSL Nicknames in Station Profiles arent defined'); - exit; - } + // Check if eQSL Nicknames have been defined + $this->load->model('stations'); + if($this->stations->are_eqsl_nicks_defined() == 0) { + show_error('eQSL Nicknames in Station Profiles arent defined'); + exit; + } ini_set('memory_limit', '-1'); set_time_limit(0); @@ -255,11 +256,13 @@ class eqsl extends CI_Controller { } } // end function - public function export() { - if($this->stations->are_eqsl_nicks_defined() == 0) { - show_error('eQSL Nicknames in Station Profiles arent defined'); - exit; - } + public function export() { + // Check if eQSL Nicknames have been defined + $this->load->model('stations'); + if($this->stations->are_eqsl_nicks_defined() == 0) { + show_error('eQSL Nicknames in Station Profiles arent defined'); + exit; + } ini_set('memory_limit', '-1'); set_time_limit(0);