remove instances where a pointer is used in a foreach loop for value (#7108)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user