Skip to content

Commit

Permalink
Merge pull request #37 from zzhelev/patch-1
Browse files Browse the repository at this point in the history
Update snippet.polls.php
  • Loading branch information
Bert Oost committed Aug 19, 2013
2 parents 3a4c228 + 02a4c38 commit 7fe6dfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/components/polls/elements/snippets/snippet.polls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -105,4 +105,4 @@

return $output;

?>
?>

0 comments on commit 7fe6dfb

Please sign in to comment.