Skip to content

Commit

Permalink
Merge pull request #2649 from QuizandSurveyMaster/dev-zubair
Browse files Browse the repository at this point in the history
fixed issue with random order
  • Loading branch information
zubairraeen authored Sep 23, 2024
2 parents 3d7a41a + 4922f86 commit 06833d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions php/classes/class-qmn-quiz-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -976,8 +976,7 @@ public function load_questions( $quiz_id, $quiz_options, $is_quiz_page, $questio
in_array( intval( $quiz_options->randomness_order ), [ 1, 2 ], true) &&
! empty($questions) &&
is_array($questions) &&
! isset($_COOKIE[ 'question_ids_' . $quiz_id ]) &&
! empty( $quiz_options->question_from_total )
! isset($_COOKIE[ 'question_ids_' . $quiz_id ])
) {
$question_ids = array();
foreach ( $questions as $question ) {
Expand Down

0 comments on commit 06833d4

Please sign in to comment.