From 69b7cf1c0b53bea70083f88d89b07e62b67237b7 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Thu, 26 Dec 2024 17:39:14 -0600 Subject: [PATCH] Allow admin to enter a bonus score of zero Closes #87 --- app/Http/Controllers/Tabulation/BonusScoreController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Tabulation/BonusScoreController.php b/app/Http/Controllers/Tabulation/BonusScoreController.php index d0cb4ab..bc8ed1a 100644 --- a/app/Http/Controllers/Tabulation/BonusScoreController.php +++ b/app/Http/Controllers/Tabulation/BonusScoreController.php @@ -69,7 +69,7 @@ class BonusScoreController extends Controller } // If no score was submitted, were going to just stop at deleting the scores - if (! $validData['score'] == null) { + if (! is_null($validData['score'])) { // Set the new score try { $saveBonusScore($judge, $entry, $validData['score']);