diff --git a/app/devices/device_profile_edit.php b/app/devices/device_profile_edit.php index 31c5c93fbf..3ed5f3ac65 100644 --- a/app/devices/device_profile_edit.php +++ b/app/devices/device_profile_edit.php @@ -309,11 +309,11 @@ //add an empty row if (!is_array($device_profile_keys) || count($device_profile_keys) == 0) { - $rows = $_SESSION['devices']['profile_add_rows']['numeric']; + $rows = $_SESSION['devices']['profile_key_add_rows']['numeric']; $id = 0; } if (is_array($device_profile_keys) && count($device_profile_keys) > 0) { - $rows = $_SESSION['devices']['profile_edit_rows']['numeric']; + $rows = $_SESSION['devices']['profile_key_edit_rows']['numeric']; $id = count($device_profile_keys)+1; } for ($x = 0; $x < $rows; $x++) {