$UserVotes = Votes::get_user_votes($LoggedUser['ID']); $GroupVotes = Votes::get_group_votes($GroupID); $TotalVotes = $GroupVotes['Total']; $UpVotes = $GroupVotes['Ups']; $DownVotes = $TotalVotes - $UpVotes; $Voted = isset($UserVotes[$GroupID]) ? $UserVotes[$GroupID]['Type'] : false; $Score = Votes::binomial_score($UpVotes, $TotalVotes); ?>