Skip to content

Commit

Permalink
fixed php warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zubairraeen committed Sep 12, 2024
1 parent 2b9dac3 commit 523479f
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 @@ -2404,8 +2404,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 += (float)$results_array['points'];
$answer_points += (float)$results_array['points'];
$points_earned += isset($results_array['points']) ? (float)$results_array['points'] : 0;
$answer_points += isset($results_array['points']) ? (float)$results_array['points'] : 0;
// 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 523479f

Please sign in to comment.