mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Fixed the contact search
This commit is contained in:
@@ -40,13 +40,6 @@
|
|||||||
//set additional variables
|
//set additional variables
|
||||||
$show = $_GET["show"] ?? '';
|
$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)
|
//retrieve current user's assigned groups (uuids)
|
||||||
foreach ($_SESSION['groups'] as $group_data) {
|
foreach ($_SESSION['groups'] as $group_data) {
|
||||||
$user_group_uuids[] = $group_data['group_uuid'];
|
$user_group_uuids[] = $group_data['group_uuid'];
|
||||||
@@ -56,7 +49,7 @@
|
|||||||
$user_group_uuids[] = $_SESSION["user_uuid"];
|
$user_group_uuids[] = $_SESSION["user_uuid"];
|
||||||
|
|
||||||
//add the search term
|
//add the search term
|
||||||
if (isset($search)) {
|
if (!empty($_GET["search"])) {
|
||||||
$search = strtolower($_GET["search"]);
|
$search = strtolower($_GET["search"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user