From 692fb0b389be7463cf02028167978b6af487acec Mon Sep 17 00:00:00 2001 From: Jefferson49 <81484983+Jefferson49@users.noreply.github.com> Date: Wed, 20 Mar 2024 05:42:52 +0100 Subject: [PATCH] Fixes #90: Results are shown during poll although configuration is set to no --- com_sexypolling/site/helpers/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com_sexypolling/site/helpers/helper.php b/com_sexypolling/site/helpers/helper.php index cf6241c..55ece12 100644 --- a/com_sexypolling/site/helpers/helper.php +++ b/com_sexypolling/site/helpers/helper.php @@ -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); }