浏览代码

Rename the array $remianing_group_permissions to $database_group_permissions

FusionPBX 5 年之前
父节点
当前提交
f0feca2633
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      core/groups/resources/classes/permission.php

+ 3 - 3
core/groups/resources/classes/permission.php

@@ -125,7 +125,7 @@
 				//get the remaining group permissions
 				//get the remaining group permissions
 					$sql = "select permission_name, group_name from v_group_permissions ";
 					$sql = "select permission_name, group_name from v_group_permissions ";
 					$database = new database;
 					$database = new database;
-					$remianing_group_permissions = $database->select($sql, null, 'all');
+					$database_group_permissions = $database->select($sql, null, 'all');
 
 
 				//get the $apps array from the installed apps from the core and mod directories
 				//get the $apps array from the installed apps from the core and mod directories
 					$config_list = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/*/*/app_config.php");
 					$config_list = glob($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/*/*/app_config.php");
@@ -156,9 +156,9 @@
 											}
 											}
 										}
 										}
 										if (!$group_protected) {
 										if (!$group_protected) {
-											// check if the item is not currently in the db
+											// check if the item is not currently in the database
 											$exists = false;
 											$exists = false;
-											foreach ($remianing_group_permissions as $i => $group_permission) {
+											foreach ($database_group_permissions as $i => $group_permission) {
 												if ($group_permission['permission_name'] == $permission['name']) {
 												if ($group_permission['permission_name'] == $permission['name']) {
 													if ($group_permission['group_name'] == $group_name) {
 													if ($group_permission['group_name'] == $group_name) {
 														$exists = true;
 														$exists = true;