浏览代码

Select only group_name to make it more efficient.

Mark Crane 10 年之前
父节点
当前提交
ef95cde951
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/users/groupdelete.php

+ 2 - 2
core/users/groupdelete.php

@@ -42,9 +42,9 @@ require_once "resources/require.php";
 //validate the uuid
 	if (is_uuid($group_uuid)) {
 		//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 .= "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->execute();
 			$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);