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:
@@ -32,7 +32,7 @@
|
||||
$number_translation = new number_translations;
|
||||
|
||||
//process the xml files
|
||||
foreach ($xml_list as &$xml_file) {
|
||||
foreach ($xml_list as $xml_file) {
|
||||
//get and parse the xml
|
||||
$number_translation->xml = file_get_contents($xml_file);
|
||||
$number_translation->import();
|
||||
|
||||
@@ -108,7 +108,7 @@ if (!class_exists('number_translations')) {
|
||||
//loop through the condition array
|
||||
$order = 5;
|
||||
if (isset($number_translation['rule'])) {
|
||||
foreach ($number_translation['rule'] as &$row) {
|
||||
foreach ($number_translation['rule'] as $row) {
|
||||
if (array_key_exists('@attributes', $row)) {
|
||||
$row = $row['@attributes'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user