From 4922f865f64a583d6b7d551f5e4d15ca3809947c Mon Sep 17 00:00:00 2001 From: Mohammad Zubair Ali Date: Mon, 23 Sep 2024 15:36:53 +0530 Subject: [PATCH] fixed issue with random order --- php/classes/class-qmn-quiz-manager.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php/classes/class-qmn-quiz-manager.php b/php/classes/class-qmn-quiz-manager.php index 1b84e7f7..7ffcadd2 100644 --- a/php/classes/class-qmn-quiz-manager.php +++ b/php/classes/class-qmn-quiz-manager.php @@ -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 ) {