remove instances where a pointer is used in a foreach loop for value (#7108)

This commit is contained in:
frytimo
2024-08-22 15:41:10 -03:00
committed by GitHub
parent 0583c5b429
commit 2cbb4dbc31
73 changed files with 170 additions and 170 deletions

View File

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

View File

@@ -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'];
}