mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
remove instances where a pointer is used in a foreach loop for value (#7108)
This commit is contained in:
@@ -119,7 +119,7 @@
|
||||
|
||||
//add group_member to the users array
|
||||
if (!empty($users)) {
|
||||
foreach ($users as &$field) {
|
||||
foreach ($users as $field) {
|
||||
$field['group_member'] = 'false';
|
||||
if (!empty($user_groups)) {
|
||||
foreach($user_groups as $row) {
|
||||
@@ -196,7 +196,7 @@
|
||||
|
||||
if (is_array($user_groups) && @sizeof($user_groups) != 0) {
|
||||
$x = 0;
|
||||
foreach ($user_groups as &$row) {
|
||||
foreach ($user_groups as $row) {
|
||||
echo "<tr class='list-row' href='".$list_row_url."'>";
|
||||
if (permission_exists('group_member_delete')) {
|
||||
echo " <td class='checkbox'>\n";
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
unset($sql, $parameters);
|
||||
|
||||
if (is_array($result) && sizeof($result) != 0) {
|
||||
foreach ($result as $x => &$row) {
|
||||
foreach ($result as $x => $row) {
|
||||
//define group permissions values
|
||||
$domain_uuid = $row["domain_uuid"];
|
||||
$permission_name = $row["permission_name"];
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
//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");
|
||||
$x = 0;
|
||||
foreach ($config_list as &$config_path) {
|
||||
foreach ($config_list as $config_path) {
|
||||
include($config_path);
|
||||
$x++;
|
||||
}
|
||||
@@ -130,7 +130,7 @@
|
||||
//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");
|
||||
$x = 0;
|
||||
foreach ($config_list as &$config_path) {
|
||||
foreach ($config_list as $config_path) {
|
||||
include($config_path);
|
||||
$x++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user