From 9c09269159fdfc75d3248944f8b3acdf0fba91e2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 30 Aug 2023 13:48:35 -0600 Subject: [PATCH] Set the search value to lower case --- app/destinations/destinations.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php index c260dc9529..c53451dd13 100644 --- a/app/destinations/destinations.php +++ b/app/destinations/destinations.php @@ -111,9 +111,13 @@ $order_by = $_GET["order_by"] ?? ''; $order = $_GET["order"] ?? ''; -//get the HTTP variables - $search = $_GET["search"] ?? ''; - $show = $_GET["show"] ?? ''; +//get http variables + if (isset($_GET["search"]) && !empty($_GET["search"])) { + $search = strtolower($_GET["search"]); + } + if (isset($_GET["show"]) && !empty($_GET["show"])) { + $show = strtolower($_GET["show"]); + } //set from session variables $list_row_edit_button = !empty($_SESSION['theme']['list_row_edit_button']['boolean']) ? $_SESSION['theme']['list_row_edit_button']['boolean'] : 'false';