From 2591d3aef6c0e563867dfbaa18ceb9de10cfe6ab Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Sat, 16 Dec 2023 13:44:39 +0100 Subject: [PATCH] fix error message bug --- application/controllers/Hrdlog.php | 4 ++-- assets/js/sections/hrdlog.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/Hrdlog.php b/application/controllers/Hrdlog.php index 54765111..547458da 100644 --- a/application/controllers/Hrdlog.php +++ b/application/controllers/Hrdlog.php @@ -85,7 +85,7 @@ class Hrdlog extends CI_Controller { } } if ($i == 0) { - $result['status']='OK'; + $result['status']='Error'; } $result['count'] = $i; $result['errormessages'] = $errormessages; @@ -147,7 +147,7 @@ class Hrdlog extends CI_Controller { echo json_encode($data); } else { $data['status'] = 'Error'; - $data['info'] = 'Error: No QSOs found to upload.'; + $data['info'] = 'No QSOs found to upload.'; $data['errormessages'] = $result['errormessages']; echo json_encode($data); } diff --git a/assets/js/sections/hrdlog.js b/assets/js/sections/hrdlog.js index 67153685..bf7779d2 100644 --- a/assets/js/sections/hrdlog.js +++ b/assets/js/sections/hrdlog.js @@ -24,7 +24,7 @@ function ExportHrd(station_id) { $(".card-body").append(''); } else { - $(".card-body").append(''); + $(".card-body").append(''); } if (data.errormessages.length > 0) {