Select only group_name to make it more efficient.
This commit is contained in:
@@ -42,9 +42,9 @@ require_once "resources/require.php";
|
|||||||
//validate the uuid
|
//validate the uuid
|
||||||
if (is_uuid($group_uuid)) {
|
if (is_uuid($group_uuid)) {
|
||||||
//get the group from v_groups
|
//get the group from v_groups
|
||||||
$sql = "select * from v_groups ";
|
$sql = "select group_name from v_groups ";
|
||||||
$sql .= "where group_uuid = '".$group_uuid."' ";
|
$sql .= "where group_uuid = '".$group_uuid."' ";
|
||||||
$sql .= "and (domain_uuid = '".$_SESSION['domain_uuid']."' or domain_uuid is null) ";
|
$sql .= "and (domain_uuid = '".$_SESSION['domain_uuid']."' or domain_uuid is null); ";
|
||||||
$prep_statement = $db->prepare(check_sql($sql));
|
$prep_statement = $db->prepare(check_sql($sql));
|
||||||
$prep_statement->execute();
|
$prep_statement->execute();
|
||||||
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
||||||
|
|||||||
Reference in New Issue
Block a user