Skip to content

Commit

Permalink
Merge pull request #2683 from QuizandSurveyMaster/CU-86cwubxcr-text-b…
Browse files Browse the repository at this point in the history
…efore-quiz-show-even-after-blank

Cu 86cwubxcr text before quiz show even after blank
  • Loading branch information
zubairraeen authored Oct 18, 2024
2 parents ff2981a + 2e22491 commit 5debe5e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions php/classes/class-qsm-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,7 @@ public function get_quiz_options() {

$text = $this->get_setting('quiz_text');
if ( is_array($text) ) {
foreach ( $text as $key => $value ) {
if ( ! empty($value) ) {
$quiz_options[ $key ] = $value;
}
}
$quiz_options = array_merge( $quiz_options, $text );
}

// Return as old object model
Expand Down

0 comments on commit 5debe5e

Please sign in to comment.