From 7fef104c35e82f679d3a658d35670f95ce63aef9 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 17 Jun 2019 14:29:03 +0100 Subject: [PATCH] Testing some changes but wasn't happy with it --- application/controllers/Logbook.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index b57ea70f..d43bed4d 100755 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -376,7 +376,6 @@ class Logbook extends CI_Controller { function searchbearing($locator) { $this->load->library('Qra'); - if($locator != null) { if($this->session->userdata('user_locator') != null){ $mylocator = $this->session->userdata('user_locator'); @@ -384,8 +383,6 @@ class Logbook extends CI_Controller { $mylocator = $this->config->item('locator'); } - - $bearing = $this->qra->bearing($mylocator, $locator); echo $bearing; @@ -425,4 +422,6 @@ class Logbook extends CI_Controller { $latlng = $this->qra->qra2latlong($qra); print json_encode($latlng); } -} + + +} \ No newline at end of file