remove instances where a pointer is used in a foreach loop for value (#7108)
This commit is contained in:
@@ -1768,7 +1768,7 @@
|
||||
echo " <select name='fax_uuid' id='fax_uuid' class='formfld' style='".$select_style."'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if (!empty($result)) {
|
||||
foreach ($result as &$row) {
|
||||
foreach ($result as $row) {
|
||||
if ($row["fax_uuid"] == $fax_uuid) {
|
||||
echo " <option value='".escape($row["fax_uuid"])."' selected='selected'>".escape($row["fax_extension"])." ".escape($row["fax_name"])."</option>\n";
|
||||
}
|
||||
@@ -1796,7 +1796,7 @@
|
||||
echo " <select name='provider_uuid' id='provider_uuid' class='formfld' style='".$select_style."'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
if (!empty($providers)) {
|
||||
foreach ($providers as &$row) {
|
||||
foreach ($providers as $row) {
|
||||
if ($row["provider_uuid"] == $provider_uuid) {
|
||||
echo " <option value='".escape($row["provider_uuid"])."' selected='selected'>".escape($row["provider_name"])."</option>\n";
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ if (!class_exists('destinations')) {
|
||||
//get the array from the app_config.php files
|
||||
$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) {
|
||||
try {
|
||||
include($config_path);
|
||||
}
|
||||
@@ -204,8 +204,8 @@ if (!class_exists('destinations')) {
|
||||
$x++;
|
||||
}
|
||||
$i = 0;
|
||||
foreach ($apps as $x => &$app) {
|
||||
if (isset($app['destinations'])) foreach ($app['destinations'] as &$row) {
|
||||
foreach ($apps as $x => $app) {
|
||||
if (isset($app['destinations'])) foreach ($app['destinations'] as $row) {
|
||||
if (permission_exists($this->singular($row["name"])."_destinations")) {
|
||||
$this->destinations[] = $row;
|
||||
}
|
||||
@@ -569,7 +569,7 @@ if (!class_exists('destinations')) {
|
||||
//get the array from the app_config.php files
|
||||
$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) {
|
||||
try {
|
||||
include($config_path);
|
||||
}
|
||||
@@ -579,9 +579,9 @@ if (!class_exists('destinations')) {
|
||||
$x++;
|
||||
}
|
||||
$i = 0;
|
||||
foreach ($apps as $x => &$app) {
|
||||
foreach ($apps as $x => $app) {
|
||||
if (isset($app['destinations'])) {
|
||||
foreach ($app['destinations'] as &$row) {
|
||||
foreach ($app['destinations'] as $row) {
|
||||
$this->destinations[] = $row;
|
||||
}
|
||||
}
|
||||
@@ -779,7 +779,7 @@ if (!class_exists('destinations')) {
|
||||
//get the array from the app_config.php files
|
||||
$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) {
|
||||
try {
|
||||
include($config_path);
|
||||
}
|
||||
@@ -789,9 +789,9 @@ if (!class_exists('destinations')) {
|
||||
$x++;
|
||||
}
|
||||
$i = 0;
|
||||
foreach ($apps as $x => &$app) {
|
||||
foreach ($apps as $x => $app) {
|
||||
if (isset($app['destinations'])) {
|
||||
foreach ($app['destinations'] as &$row) {
|
||||
foreach ($app['destinations'] as $row) {
|
||||
$this->destinations[] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user