From 361c5e9224416fb216b44eee8353efcf32aa3b54 Mon Sep 17 00:00:00 2001 From: Jaimos Skriletz Date: Thu, 20 Aug 2026 16:23:50 -0600 Subject: [PATCH] Fix make sure key is defined before comparing it. Make sure `$localData->{set_id}` is defined before comparing it in a `ne` comparision in still_no_right achievement. --- .../modelCourse/templates/achievements/still_not_right.at | 1 + 1 file changed, 1 insertion(+) diff --git a/courses.dist/modelCourse/templates/achievements/still_not_right.at b/courses.dist/modelCourse/templates/achievements/still_not_right.at index 80b968f712..d06a81ea91 100644 --- a/courses.dist/modelCourse/templates/achievements/still_not_right.at +++ b/courses.dist/modelCourse/templates/achievements/still_not_right.at @@ -6,6 +6,7 @@ # Initialize $localData. $localData->{incorrect_streak} //= 0; +$localData->{set_id} //= ''; # If the problem is correct, reset counter and move on. if ($problem->status == 1) {