Skip to content

Commit

Permalink
Minor changes to resolve other file change
Browse files Browse the repository at this point in the history
  • Loading branch information
etchirag committed Sep 24, 2024
1 parent be628fa commit c909bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php/classes/class-qmn-quiz-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -2417,8 +2417,8 @@ public static function check_answers( $options, $quiz_data ) {
$results_array = apply_filters( 'qmn_results_array', $results_array, $question );
// If question was graded correctly.
if ( ! isset( $results_array['null_review'] ) ) {
$points_earned += isset($results_array['points']) ? (float)$results_array['points'] : 0;
$answer_points += isset($results_array['points']) ? (float)$results_array['points'] : 0;
$points_earned += (float)$results_array['points'];
$answer_points += (float)$results_array['points'];
// If the user's answer was correct.
if ( isset( $results_array['correct'] ) && ( 'correct' == $results_array['correct'] ) ) {
$total_correct += 1;
Expand Down

0 comments on commit c909bba

Please sign in to comment.