Rename the array $remianing_group_permissions to $database_group_permissions

This commit is contained in:
FusionPBX 2020-06-26 10:00:24 -06:00 committed by GitHub
parent f5a8a3b998
commit 468cdb9a88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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;