Fixed the contact search
This commit is contained in:
parent
ebb8193add
commit
3d2b12b88e
|
|
@ -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"]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue