Skip to content

Firefly III: a personal finances manager

Remove unused index

James Cole63f00cbb7bec
diff --git a/app/Api/V1/Requests/TransactionUpdateRequest.php b/app/Api/V1/Requests/TransactionUpdateRequest.php
index 36531a269e..418c5fd527 100644
--- a/app/Api/V1/Requests/TransactionUpdateRequest.php
+++ b/app/Api/V1/Requests/TransactionUpdateRequest.php
@@ -395,7 +395,7 @@ class TransactionUpdateRequest extends Request
* @var int $index
* @var array $transaction
*/
- foreach ($this->get('transactions') as $index => $transaction) {
+ foreach ($this->get('transactions') $transaction) {
// default response is to update nothing in the transaction:
$current = [];
$current = $this->getIntegerData($current, $transaction);