From a4a9217e37685b522812d34b86cc9be1f84c6e25 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 4 Feb 2021 16:46:11 +0100 Subject: [PATCH] Minor changes (variable naming and comments) --- application/controllers/Qso.php | 4 ++-- application/views/interface_assets/footer.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/Qso.php b/application/controllers/Qso.php index f1e7b1b0..9bf03a7a 100755 --- a/application/controllers/Qso.php +++ b/application/controllers/Qso.php @@ -294,13 +294,13 @@ class QSO extends CI_Controller { if(!empty($this->input->get("query"))) { $query = isset($_GET['query']) ? $_GET['query'] : FALSE; - $sota = strtoupper($query); + $dok = strtoupper($query); $file = 'assets/json/dok.txt'; if (is_readable($file)) { $lines = file($file, FILE_IGNORE_NEW_LINES); - $input = preg_quote($sota, '~'); + $input = preg_quote($dok, '~'); $reg = '~^'. $input .'(.*)$~'; $result = preg_grep($reg, $lines); $json = []; diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 1e5388d9..376c2800 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -404,7 +404,7 @@ $( document ).ready(function() { options: [], create: false, load: function(query, callback) { - if (!query) return callback(); // Only trigger if 3 or more characters are entered + if (!query) return callback(); // Only trigger if at least 1 character is entered $.ajax({ url: baseURL+'index.php/qso/get_dok', type: 'GET',