Fixed the contact search

This commit is contained in:
FusionPBX 2023-10-02 11:44:05 -06:00 committed by GitHub
parent ebb8193add
commit 3d2b12b88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

View File

@ -40,13 +40,6 @@
//set additional variables
$show = $_GET["show"] ?? '';
//get posted data
if (!empty($_POST['contacts'])) {
$action = $_POST['action'];
$search = $_POST['search'];
$name = $_POST['name'];
}
//retrieve current user's assigned groups (uuids)
foreach ($_SESSION['groups'] as $group_data) {
$user_group_uuids[] = $group_data['group_uuid'];
@ -56,7 +49,7 @@
$user_group_uuids[] = $_SESSION["user_uuid"];
//add the search term
if (isset($search)) {
if (!empty($_GET["search"])) {
$search = strtolower($_GET["search"]);
}