From 85accb60a8b51c6cb39fd5192d746f6dbef37792 Mon Sep 17 00:00:00 2001 From: "Joerg (DJ7NT)" Date: Sun, 8 Feb 2026 11:48:06 +0100 Subject: [PATCH] Update SQL bindings for wildcard matching Accidently removed them during refactor. Sri! --- application/controllers/Logbook.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/controllers/Logbook.php b/application/controllers/Logbook.php index aa4c821d0..2a7b06b27 100644 --- a/application/controllers/Logbook.php +++ b/application/controllers/Logbook.php @@ -718,9 +718,9 @@ class Logbook extends CI_Controller { $bindings = [ $lookupcall, // Exact match: COL_CALL = ? - '/' . $lookupcall, // Starts with /: COL_CALL LIKE '/ABC' - $lookupcall . '/', // Ends with /: COL_CALL LIKE 'ABC/' - '/' . $lookupcall . '/', // Both sides: COL_CALL LIKE '/ABC/' + '%/' . $lookupcall, // Starts with /: COL_CALL LIKE '/ABC' + $lookupcall . '/%', // Ends with /: COL_CALL LIKE 'ABC/' + '%/' . $lookupcall . '/%', // Both sides: COL_CALL LIKE '/ABC/' (int)$count // LIMIT ];