Skip to content

Commit

Permalink
Fixes #90: Results are shown during poll although configuration is se…
Browse files Browse the repository at this point in the history
…t to no
  • Loading branch information
Jefferson49 committed Mar 20, 2024
1 parent eaa74e2 commit 692fb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion com_sexypolling/site/helpers/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public function render_html()
}

// disable results till poll is ended
if($polling_array[0]->showresultsduringpoll === 0 && $date_now < strtotime($polling_array[0]->date_end ?? '')) {
if($polling_array[0]->showresultsduringpoll == 0 && $date_now < strtotime($polling_array[0]->date_end ?? '')) {
$hide_results_ids[$poll_index] = $polling_words[25] . HTMLHelper::date(($polling_array[0]->date_end ?? ''), $stringdateformat, $data_time_zone);
}

Expand Down

0 comments on commit 692fb0b

Please # to comment.