Skip to content

Commit

Permalink
fix: retake set -1 in mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
daonham committed Jan 4, 2023
1 parent 661e8b7 commit f679a80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public function get_quiz_results( $quiz, $get_question = false ) {
'passing_grade' => $quiz->get_passing_grade(),
'negative_marking' => $quiz->get_negative_marking(),
'instant_check' => $quiz->get_instant_check(),
'retake_count' => absint( $quiz->get_retake_count() ),
'retake_count' => (float) $quiz->get_retake_count(),
'questions_per_page' => $quiz->get_pagination(),
'page_numbers' => get_post_meta( $quiz->get_id(), '_lp_pagination_numbers', true ) === 'yes',
'review_questions' => $quiz->get_review_questions(),
Expand Down

0 comments on commit f679a80

Please sign in to comment.