Minor changes (variable naming and comments)

pull/867/head
phl0 2021-02-04 16:46:11 +01:00
rodzic 5597927c64
commit a4a9217e37
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 48EA1E640798CA9A
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -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 = [];

Wyświetl plik

@ -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',