From 271f76f7f42ad834c8c0e081b0e1939cc3ef104f Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Sun, 10 Nov 2024 17:57:13 +0100 Subject: [PATCH] micro fix in salvataggio modificatore --- code/app/Services/ModifiersService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/app/Services/ModifiersService.php b/code/app/Services/ModifiersService.php index 6877073a..2c2806d0 100644 --- a/code/app/Services/ModifiersService.php +++ b/code/app/Services/ModifiersService.php @@ -96,7 +96,7 @@ public function update($id, array $request) } else { $thresholds = $request['threshold'] ?? []; - $amounts = $request['amount']; + $amounts = $request['amount'] ?? []; foreach($thresholds as $index => $threshold) { $threshold = trim($threshold);