diff --git a/core/components/polls/elements/snippets/snippet.polls.php b/core/components/polls/elements/snippets/snippet.polls.php index cc21fd2..7810165 100755 --- a/core/components/polls/elements/snippets/snippet.polls.php +++ b/core/components/polls/elements/snippets/snippet.polls.php @@ -89,7 +89,7 @@ } // build resource url for results if not has voted, because then the results are showed - if(!empty($resultResource) && is_numeric($resultResource) && $resultResource > 0 && !$latest->hasVoted()) { + if(!empty($resultResource) && is_numeric($resultResource) && $resultResource > 0 && !$poll->hasVoted()) { $resource = $modx->getObject('modResource', $resultResource); @@ -105,4 +105,4 @@ return $output; -?> \ No newline at end of file +?>