فهرست منبع

Update install_fusionpbx.php

FusionPBX 6 سال پیش
والد
کامیت
f3481e5964
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      core/install/resources/classes/install_fusionpbx.php

+ 3 - 3
core/install/resources/classes/install_fusionpbx.php

@@ -724,7 +724,7 @@ include "root.php";
 				unset($sql);
 			}
 			$this->write_progress("\tChecking if superuser is in the correct group");
-			$sql = "select count(*) as count from v_group_users ";
+			$sql = "select count(*) as count from v_user_groups ";
 			$sql .= "where domain_uuid = '".$this->global_settings->domain_uuid()."' ";
 			$sql .= "and user_uuid = '".$this->admin_uuid."' ";
 			$sql .= "and group_name = 'superadmin' ";
@@ -735,7 +735,7 @@ include "root.php";
 			$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
 			if ($row['count'] == 0) {
 				//add the user to the superadmin group
-				$sql = "insert into v_group_users ";
+				$sql = "insert into v_user_groups ";
 				$sql .= "(";
 				$sql .= "group_user_uuid, ";
 				$sql .= "domain_uuid, ";
@@ -770,7 +770,7 @@ include "root.php";
 				$_SESSION['event_socket_password'] = $this->global_settings->switch_event_password();
 
 			//get the groups assigned to the user and then set the groups in $_SESSION["groups"]
-				$sql = "SELECT * FROM v_group_users ";
+				$sql = "SELECT * FROM v_user_groups ";
 				$sql .= "where domain_uuid=:domain_uuid ";
 				$sql .= "and user_uuid=:user_uuid ";
 				$prep_statement = $this->dbh->prepare(check_sql($sql));