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

This commit is contained in:
frytimo
2024-08-22 12:41:10 -06:00
committed by GitHub
parent 0583c5b429
commit 2cbb4dbc31
73 changed files with 170 additions and 170 deletions
@@ -159,7 +159,7 @@
//add or update the device keys
if (is_array($_POST['device_keys'])) {
foreach ($_POST['device_keys'] as &$row) {
foreach ($_POST['device_keys'] as $row) {
//validate the data
$save = true;
@@ -187,7 +187,7 @@
//process the profile keys
if (!empty($row["device_profile_uuid"])) {
//get the profile key settings from the array
foreach ($device_profile_keys as &$field) {
foreach ($device_profile_keys as $field) {
if ($device_key_uuid == $field["device_key_uuid"]) {
$database = $field;
break;