File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change @@ -3461,8 +3461,7 @@ public static function display_question_list_by_attempt(
3461
3461
$ objExercise ,
3462
3462
$ exe_id ,
3463
3463
$ save_user_result = false
3464
- )
3465
- {
3464
+ ) {
3466
3465
global $ origin ;
3467
3466
3468
3467
// Getting attempt info
@@ -3532,16 +3531,19 @@ public static function display_question_list_by_attempt(
3532
3531
3533
3532
if ($ attempts ) {
3534
3533
$ numberAttempts = count ($ attempts );
3535
- if ($ save_user_result ) {
3536
- $ numberAttempts ++;
3537
- }
3538
- if ($ numberAttempts >= $ objExercise ->attempts ) {
3539
- $ show_results = true ;
3540
- $ show_only_score = false ;
3541
- $ show_total_score_and_user_choices = false ;
3542
- } else {
3543
- $ show_total_score_and_user_choices = true ;
3544
- }
3534
+ } else {
3535
+ $ numberAttempts = 0 ;
3536
+ }
3537
+
3538
+ if ($ save_user_result ) {
3539
+ $ numberAttempts ++;
3540
+ }
3541
+ if ($ numberAttempts >= $ objExercise ->attempts ) {
3542
+ $ show_results = true ;
3543
+ $ show_only_score = false ;
3544
+ $ show_total_score_and_user_choices = false ;
3545
+ } else {
3546
+ $ show_total_score_and_user_choices = true ;
3545
3547
}
3546
3548
}
3547
3549
}
You can’t perform that action at this time.
0 commit comments