From d62ab2e7d40a6d7d6dbce4a6364fb05f43bfabaa Mon Sep 17 00:00:00 2001 From: Thomas Werzmirzowsky Date: Tue, 12 Oct 2021 20:03:14 +0200 Subject: [PATCH] added check for empty result from list_logbooks_linked removed "echo" outputs as then the following redirect is not possible --- application/controllers/Logbooks.php | 3 --- application/views/logbooks/edit.php | 18 +++++++++++++----- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/application/controllers/Logbooks.php b/application/controllers/Logbooks.php index 9e136115c..2eb893779 100644 --- a/application/controllers/Logbooks.php +++ b/application/controllers/Logbooks.php @@ -85,9 +85,6 @@ class Logbooks extends CI_Controller { if($this->logbooks_model->relationship_exists($this->input->post('station_logbook_id'), $this->input->post('SelectedStationLocation')) != TRUE) { // If no link exisits create $this->logbooks_model->create_logbook_location_link($this->input->post('station_logbook_id'), $this->input->post('SelectedStationLocation')); - echo "linked"; - } else { - echo "Already Linked"; } } else { $this->logbooks_model->edit(); diff --git a/application/views/logbooks/edit.php b/application/views/logbooks/edit.php index 04b9485e4..d31e62caa 100644 --- a/application/views/logbooks/edit.php +++ b/application/views/logbooks/edit.php @@ -75,18 +75,26 @@ - + - + - - - result() as $row) { ?> + result() as $row) { + ?> + + + +
Location NameLocation Name
station_profile_name;?> (Callsign: station_callsign;?> DXCC: station_country;?>)
No linked locations