Skip to content

Commit

Permalink
Update snippet.polls.php
Browse files Browse the repository at this point in the history
Line 92: changed $latest to $poll. $latest is undefined.
  • Loading branch information
zzhelev committed Aug 17, 2013
1 parent 3a4c228 commit 02a4c38
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 02a4c38

Please sign in to comment.