diff --git a/macros/core/scaffold.pl b/macros/core/scaffold.pl index 7d6b653ed..f69b58c33 100644 --- a/macros/core/scaffold.pl +++ b/macros/core/scaffold.pl @@ -593,9 +593,8 @@ sub add_container { 'div', class => 'accordion-header' . ( - $iscorrect && ($main::envir{showFeedback} || $main::envir{forceShowAttemptResults}) - ? ' iscorrect' - : ' iswrong' + $iscorrect && (($main::envir{showFeedback} && $main::envir{showAttemptResults}) + || $main::envir{forceShowAttemptResults}) ? ' iscorrect' : ' iswrong' ) . ($canopen ? ' canopen' : ' cannotopen'), id => "$label-header",